{"id":27425869,"url":"https://github.com/straylittlepunk/tencent3","last_synced_at":"2026-06-23T21:31:50.155Z","repository":{"id":75004469,"uuid":"605195687","full_name":"StrayLittlePunk/tencent3","owner":"StrayLittlePunk","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-22T17:01:49.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T12:50:55.592Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StrayLittlePunk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-02-22T16:43:51.000Z","updated_at":"2023-02-22T16:49:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"28ef811e-aaf3-4fcf-8249-7c1eab97e72d","html_url":"https://github.com/StrayLittlePunk/tencent3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/StrayLittlePunk/tencent3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StrayLittlePunk%2Ftencent3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StrayLittlePunk%2Ftencent3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StrayLittlePunk%2Ftencent3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StrayLittlePunk%2Ftencent3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StrayLittlePunk","download_url":"https://codeload.github.com/StrayLittlePunk/tencent3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StrayLittlePunk%2Ftencent3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017382,"owners_count":26086052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-14T12:29:22.916Z","updated_at":"2025-10-14T00:06:35.000Z","avatar_url":"https://github.com/StrayLittlePunk.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\n\nA Rusty Tencent Api Client with v3 authorization. Only machine translation api is supported now, other apis are not supported at present\n\n## Example\n\n```rust\nfn build_client() -\u003e TencentClient\u003cHttpsConnector\u003cHttpConnector\u003e\u003e {\n    let client = TencentClient::native(client::Credential {\n        key: \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\".to_string(),\n        id: \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\".to_string(),\n    });\n    client\n}\n\nfn main()  {\n    let client = build_client();\n    let call = client\n        .translate()\n        .text_translate()\n        .source(\"it\") // Italy\n        .target(\"zh\")\n        .project_id(PROJECT_ID)\n        .region(\"REGION\")\n        .source_text(\"Credere è destino\")\n        .build()\n        .unwrap();\n        // {\"Response\":{\"RequestId\":\"38b2df48-48e6-4aa5-ace4-xxxxxxxxx\",\"Source\":\"it\",\"Target\":\"zh\",\"TargetText\":\"相信就是命运\"}}\n    let result = call\n        .doit(|body| {\n            let string = String::from_utf8(body).unwrap();\n            let value = serde_json::from_str::\u003cserde_json::Value\u003e(\u0026string).unwrap();\n            let text = value\n                .get(\"Response\")\n                .and_then(|res| res.get(\"TargetText\"))\n                .and_then(|e| e.as_str())\n                .unwrap();\n            assert_eq!(text, \"相信就是命运\");\n         })\n         .await;\n}\n```\n\n## The API is structured into the following primary items:\n\n### Client\n   - a central object to maintain state and allow accessing all Activities\n   - creates Method Builders which in turn allow access to individual Call Builders\n\n### Resources\n   - primary types that you can apply Activities to\n   - a collection of properties and Parts\n\n### Parts\n   - a collection of properties never directly used in Activities\n\n### Activities\n   - operations to apply to Resources","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstraylittlepunk%2Ftencent3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstraylittlepunk%2Ftencent3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstraylittlepunk%2Ftencent3/lists"}