{"id":17246228,"url":"https://github.com/hanson/tuling-sdk","last_synced_at":"2025-04-14T04:14:46.268Z","repository":{"id":62514484,"uuid":"94557671","full_name":"Hanson/tuling-sdk","owner":"Hanson","description":"AI response from tuling123.com.","archived":false,"fork":false,"pushed_at":"2017-06-16T15:45:25.000Z","size":3,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T04:14:39.809Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hanson.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}},"created_at":"2017-06-16T15:32:58.000Z","updated_at":"2017-06-17T13:15:25.000Z","dependencies_parsed_at":"2022-11-02T13:03:10.452Z","dependency_job_id":null,"html_url":"https://github.com/Hanson/tuling-sdk","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2Ftuling-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2Ftuling-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2Ftuling-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2Ftuling-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hanson","download_url":"https://codeload.github.com/Hanson/tuling-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248819408,"owners_count":21166477,"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","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":"2024-10-15T06:32:48.657Z","updated_at":"2025-04-14T04:14:46.249Z","avatar_url":"https://github.com/Hanson.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tuling-sdk\n\n图灵 SDK \n\n## 安装\n\n```php\ncomposer require hanson/tuling-sdk\n```\n\n## 文档\n\n官方文档：http://doc.tuling123.com/openapi2/263611\n\n普通用法：\n\n```php\nuse Hanson\\Tuling\\Tuling;\n\n\n$tuling = new Tuling($key, $secret);\n\n$result = $tuling-\u003etext('广州天气')-\u003erequest();\n```\n\n设置用户ID：\n\n```php\nuse Hanson\\Tuling\\Tuling;\n\n\n$tuling = new Tuling($key, $secret);\n\n$result = $tuling-\u003etext('广州天气')-\u003euser($id)-\u003erequest();\n```\n\n设置位置：\n\n```php\nuse Hanson\\Tuling\\Tuling;\n\n\n$tuling = new Tuling($key, $secret);\n\n$result = $tuling-\u003etext('天气')-\u003elocation(['city' =\u003e '广州'])-\u003euser($id)-\u003erequest();\n```\n\n默认为输出文字信息，若需要输出图灵原生返回的数组，可把 `-\u003erequest()` 改为 `-\u003erequest(true)`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanson%2Ftuling-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanson%2Ftuling-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanson%2Ftuling-sdk/lists"}