{"id":15318581,"url":"https://github.com/appleboy/codeigniter-textmagic-api","last_synced_at":"2025-04-15T02:29:24.198Z","repository":{"id":3158631,"uuid":"4189022","full_name":"appleboy/CodeIgniter-TextMagic-API","owner":"appleboy","description":"CodeIgniter Library for TextMagic API","archived":false,"fork":false,"pushed_at":"2015-07-16T05:43:52.000Z","size":132,"stargazers_count":7,"open_issues_count":0,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-10T08:20:45.385Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://blog.wu-boy.com","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/appleboy.png","metadata":{"files":{"readme":"README.markdown","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":"2012-05-01T02:26:50.000Z","updated_at":"2023-04-27T11:39:06.000Z","dependencies_parsed_at":"2022-08-30T13:11:26.602Z","dependency_job_id":null,"html_url":"https://github.com/appleboy/CodeIgniter-TextMagic-API","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2FCodeIgniter-TextMagic-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2FCodeIgniter-TextMagic-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2FCodeIgniter-TextMagic-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2FCodeIgniter-TextMagic-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appleboy","download_url":"https://codeload.github.com/appleboy/CodeIgniter-TextMagic-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248993601,"owners_count":21195222,"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-01T09:01:36.228Z","updated_at":"2025-04-15T02:29:24.159Z","avatar_url":"https://github.com/appleboy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is TextMagic? #\n\nTextMagic's application programming interface (API) provides the communication link\nbetween your application and TextMagic’s SMS Gateway, allowing you to send and receive text messages\nand to check the delivery status of text messages you’ve already sent.\n\nhttp://api.textmagic.com/en\n\nAll these commands can be executed only if you provide a valid username and API password [get it here](https://www.textmagic.com/app/wt/account/api/cmd/password) in your requests.\n\n# Requirements #\n\n* CodeIgniter 2.1.0+\n* PHP 5.2.0+\n* PHP extension: openssl, pcre, json, curl\n\n# Usage #\n\n## Install From getSparks ##\n\nPlease visit URL: http://getsparks.org/packages/TextMagic-SMS-API/show\n\n    // install from getSparks website\n    $ php tools/spark install -v1.0.1 TextMagic-SMS-API\n    // include TextMagic Library to controller\n    $this-\u003eload-\u003espark('TextMagic-SMS-API/1.0.1');\n\n### Send API ###\n\n    // set message text\n    $text = 'Hi, I am appleboy';\n    // phone number can be string or array.\n    $phone = array('xxxxxxx', 'xxxxxxx');\n    $response = $this-\u003etextmagic-\u003esend($text, $phone);\n    print_r($response);\n\n### Account API ###\n\n    $response = $this-\u003etextmagic-\u003eget_balance();\n    print_r($response);\n\n### Message Status API ###\n\n    $ids = array('xxxxxxx', 'xxxxxxx');\n    $response = $this-\u003etextmagic-\u003eget_message_status($ids);\n    print_r($response);\n\n### Receive API ###\n\n    $ids = 'xxxxxxx';\n    $response = $this-\u003etextmagic-\u003ereceive($ids);\n    print_r($response);\n\n### Delete reply API ###\n\n    $ids = array('xxxxxxx', 'xxxxxxx');\n    $response = $this-\u003etextmagic-\u003edelete_reply($ids);\n    print_r($response);\n\n### Check number API ###\n\n    $phones = array('xxxxxxx', 'xxxxxxx');\n    $response = $this-\u003etextmagic-\u003echeck_number($phones);\n    print_r($response);\n\n# Change Log #\n\nPlease vist [API documentation](http://api.textmagic.com/en) first\n\nDate: 2012-05-01 (Developer API)\n\n* Send API\n* Account API\n* Message Status API\n* Receive API\n* Delete reply API\n* Check number API\n\nLicense\n=======================\n\nhttp://www.opensource.org/licenses/bsd-license.php New BSD license\n\nCopyright (C) 2012 Bo-Yi Wu ( appleboy AT gmail.com )\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fcodeigniter-textmagic-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappleboy%2Fcodeigniter-textmagic-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fcodeigniter-textmagic-api/lists"}