{"id":19816487,"url":"https://github.com/enigma972/orange-api-client","last_synced_at":"2025-05-01T10:33:00.453Z","repository":{"id":56977882,"uuid":"380966913","full_name":"enigma972/orange-api-client","owner":"enigma972","description":"Orange APIs Client with Token Caching","archived":false,"fork":false,"pushed_at":"2021-12-05T18:16:37.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-26T23:19:30.382Z","etag":null,"topics":["orange-api","orange-sms","orange-sms-api","orange-smsapi","php","sdk","sms"],"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/enigma972.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":"2021-06-28T08:52:39.000Z","updated_at":"2023-11-01T07:56:45.000Z","dependencies_parsed_at":"2022-08-21T11:50:25.635Z","dependency_job_id":null,"html_url":"https://github.com/enigma972/orange-api-client","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/enigma972%2Forange-api-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enigma972%2Forange-api-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enigma972%2Forange-api-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enigma972%2Forange-api-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enigma972","download_url":"https://codeload.github.com/enigma972/orange-api-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224000803,"owners_count":17239000,"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":["orange-api","orange-sms","orange-sms-api","orange-smsapi","php","sdk","sms"],"created_at":"2024-11-12T10:09:37.330Z","updated_at":"2024-11-12T10:09:37.788Z","avatar_url":"https://github.com/enigma972.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Orange API Client (SDK)\nOrange APIs Client with Token Caching\n\n## Installation\n\nYou need to have composer installed in your computer before doing this\n\n```bash\ncomposer require enigma972/orange-api-client\n```\n\n## Quick setup and Basic example (SMS)\n\nGet `client_id` and `client_secret` [here](https://developer.orange.com/myapps/)\n\nAll examples [here](https://github.com/enigma972/orange-api-client/tree/main/examples/Sms)\n\n```php\n\u003c?php\nrequire_once './../../vendor/autoload.php';\n\nuse OrangeApiClient\\Service\\Sms\\Sms;\nuse Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter;\nuse OrangeApiClient\\Client;\nuse OrangeApiClient\\Service\\Sms\\Message;\n\n$cache = new FilesystemAdapter();\n$client = new Client($cache, 'YOUR-CLIENT-ID', 'YOUR-CLIENT-SECRET');\n\n$sms = new Sms($client);\n\n$message = new Message();\n$message\n    -\u003econtent('Hello world, via Orange SMS API.')\n    -\u003efrom(243899999999)\n    -\u003eas('Enigma972')\n    -\u003eto(243899999999)\n    ;\n\n$response = $sms-\u003edoSend($message);\n\ndd($response-\u003etoArray());\n\n```\nIf all is ok, $response should be like this :\n\n```\n^ array:1 [▼\n  \"outboundSMSMessageRequest\" =\u003e array:4 [▼\n    \"address\" =\u003e array:1 [▼\n      0 =\u003e \"tel:+243899999999\"\n    ]\n    \"senderAddress\" =\u003e \"tel:+243899999999\"\n    \"outboundSMSTextMessage\" =\u003e array:1 [▼\n      \"message\" =\u003e \"Hello world, via Orange SMS API.\"\n    ]\n    \"resourceURL\" =\u003e \"https://api.orange.com/smsmessaging/v1/outbound/tel:+243899999999/requests/2fdd2d6e-c155-43d3-97ef-1dce0dc648d5\"\n  ]\n]\n```\n\nAlso read [ismaeltoe/osms](https://github.com/ismaeltoe/osms) and [informagenie/orange-sms](https://github.com/informagenie/orange-sms).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenigma972%2Forange-api-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenigma972%2Forange-api-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenigma972%2Forange-api-client/lists"}