{"id":16232797,"url":"https://github.com/jaxx2104/mt-dataapi-php","last_synced_at":"2025-04-08T06:59:36.585Z","repository":{"id":56997071,"uuid":"41409579","full_name":"jaxx2104/mt-dataapi-php","owner":"jaxx2104","description":"Simple PHP Wrapper for MT DataAPI v3","archived":false,"fork":false,"pushed_at":"2016-05-25T01:16:24.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T04:42:19.738Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaxx2104.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-26T06:50:57.000Z","updated_at":"2016-05-25T01:17:01.000Z","dependencies_parsed_at":"2022-08-21T14:10:55.387Z","dependency_job_id":null,"html_url":"https://github.com/jaxx2104/mt-dataapi-php","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaxx2104%2Fmt-dataapi-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaxx2104%2Fmt-dataapi-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaxx2104%2Fmt-dataapi-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaxx2104%2Fmt-dataapi-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaxx2104","download_url":"https://codeload.github.com/jaxx2104/mt-dataapi-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247792887,"owners_count":20996899,"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-10T13:10:14.406Z","updated_at":"2025-04-08T06:59:36.561Z","avatar_url":"https://github.com/jaxx2104.png","language":"PHP","readme":"# mt-dataapi-php\nSimple PHP Wrapper for MT DataAPI v3\n# Description\n# Installation\ncomposer\n```json\n{\n    \"require\": {\n        \"jaxx2104/mt-dataapi-php\": \"dev-master\"\n    }\n}\n```\n# Usage\n```php\n\u003c?php\nrequire_once('vendor/autoload.php');\n$url  = 'http://xxxxxxx.com/mt/mt-data-api.cgi';\n$user = 'xxxxxxx@mail.com';\n$pass = 'xxxxxxx';\n$blogId = 1;\n\n$mt = new MT\\DataApi($url);\n\nif (!$mt-\u003elogin([\"username\" =\u003e $user, \"password\" =\u003e $pass])){\n    var_dump(\"faild login\");\n    var_dump($mt-\u003eresponse);\n    exit(1);\n}\n//success login\nvar_dump($mt-\u003eresponse);\n\nif (!$mt-\u003elistCategory($blogId)) {\n    var_dump(\"faild get category\");\n    var_dump($mt-\u003eresponse);\n    exit(1);\n}\n//success get category\nvar_dump($mt-\u003eresponse);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaxx2104%2Fmt-dataapi-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaxx2104%2Fmt-dataapi-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaxx2104%2Fmt-dataapi-php/lists"}