{"_id":"594a7782870e32001acac433","project":"54eb50e5615ffc1900305a16","version":{"_id":"54eb63b859b1172100334fae","project":"54eb50e5615ffc1900305a16","forked_from":"54eb63a1867e1917009b711d","__v":28,"createdAt":"2015-02-23T17:30:32.501Z","releaseDate":"2015-02-23T17:30:32.501Z","categories":["54eb63b959b1172100334faf","54eb63b959b1172100334fb0","54eb63b959b1172100334fb1","54eb63b959b1172100334fb2","54ed8dd4ab373e2300f50eae","54ed99b2ab373e2300f50ede","55153a6de68daa2f00cff838","551546edbc466623002afe72","5515472ac28d6125001b8884","55154749c28d6125001b8885","555d9b4106dfec0d00d38ea7","5613e06e433e5735007c7708","5624bbb785a31117001c5403","56669e857cc81e0d00253f8e","568b8d837a42220d00498311","56a632277ef6620d00e2f18a","56d8147c3eb4dd0b00201aac","57a9ce2fac6db30e000d7efd","57a9cf4e944ea60e00dc3f74","58172386715dce0f00da4aa0","582dc59ee1b8692300c0dd03","589b19b4fec2730f0082e040","58b04a023529383900a759b5","58b92d1598157a0f004869bf","592e7685c58275000f20174f","59392839e376d4002f8a0474","59393064e376d4002f8a05a1","5947ae0d4005e2000f3a4fec","594a74df1d1de5001ab3517a","5954bc387a147f001b918915","59b8eeeb707542001076d3b6"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"category":{"_id":"594a74df1d1de5001ab3517a","project":"54eb50e5615ffc1900305a16","version":"54eb63b859b1172100334fae","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-06-21T13:30:07.315Z","from_sync":false,"order":0,"slug":"new-getting-started","title":"Getting started"},"user":"54eb4fdedf7add210007b29b","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-06-21T13:41:22.140Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":5,"body":"There are several resources that illustrate integration with the Infobip APIs. For starters, dedicated documentation pages for every API endpoint contain code snippets that illustrate how to connect to that specific resource. Further more, our client libraries are publicly available on [GitHub](https://github.com/infobip) and are accompanied with the example code detailing their usage. But the most exhaustive code examples can be found in our demo applications.\n\nDemo applications are self-contained, fully functional applications written in several programming languages. They implement API integration from setting up the HTTP client, through making API requests to parsing and interpreting the API responses. Functionality typically found in a demo application consists of sending SMS and fetching delivery confirmation.\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Use your Infobip account to login\",\n  \"body\": \"In order to use demo application, you will need to provide your Infobip account credentials. If you don't have an account yet, please follow instruction on [account registration documentation page](https://dev.infobip.com/v1/docs/account-registration).\"\n}\n[/block]\nCurrently we have demo applications written in 2 languages:\n* [Java](#section-java-application)\n* [PHP](#section-php-application)\n\nEach application's code is available on [GitHub](https://github.com/infobip). There you can browse, checkout and/or fork it. For specific details take a look at the project's respective `README.md` files. There you will find details on things like requirements, coding approaches, and instruction on running the applications.\n\n## Java application\n\nCode of the Java demo application can be found [here](https://github.com/infobip/infobip-api-java-demo). In the repository's `README.md` you will find instruction on how to checkout, compile and run the code yourself.\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Code documentation\",\n  \"body\": \"Java demo application uses detailed code comments to illustrate and explain all the key parts of integrating with the Infobip API. User interface components are contained in dedicated packages so that the business logic code can be used as a guideline for writing server side applications as well.\"\n}\n[/block]\nAdditionally, you can download the prepackaged application [here](https://www.infobip.com/assets/downloads/InfobipSmsDemoApp/InfobipSmsDemoApp.jar). The application does not require any installation and can be run immediately after download.\n\n## PHP application\n\nPHP application's code can be found [here](https://github.com/infobip/infobip-api-php-tutorial/tree/api-client-example). Note that this repository has 2 branches. The `master` branch illustrates how to integrate with the Infobip API manually, while the above linked `api-client-example` branch uses the PHP client library to make the HTTP API calls.\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Tutorial\",\n  \"body\": \"PHP demo application is accompanied by a fully fledged, step by step tutorial that you can follow along in order to recreate the app. You can find the tutorial text in the repositories `README.md` file, or on our [blog](https://www.infobip.com/en/blog/sms-api-php-client-library-for-web-apps-tutorial).\"\n}\n[/block]","excerpt":"","slug":"api-demo-applications","type":"basic","title":"Demo applications"}
There are several resources that illustrate integration with the Infobip APIs. For starters, dedicated documentation pages for every API endpoint contain code snippets that illustrate how to connect to that specific resource. Further more, our client libraries are publicly available on [GitHub](https://github.com/infobip) and are accompanied with the example code detailing their usage. But the most exhaustive code examples can be found in our demo applications. Demo applications are self-contained, fully functional applications written in several programming languages. They implement API integration from setting up the HTTP client, through making API requests to parsing and interpreting the API responses. Functionality typically found in a demo application consists of sending SMS and fetching delivery confirmation. [block:callout] { "type": "info", "title": "Use your Infobip account to login", "body": "In order to use demo application, you will need to provide your Infobip account credentials. If you don't have an account yet, please follow instruction on [account registration documentation page](https://dev.infobip.com/v1/docs/account-registration)." } [/block] Currently we have demo applications written in 2 languages: * [Java](#section-java-application) * [PHP](#section-php-application) Each application's code is available on [GitHub](https://github.com/infobip). There you can browse, checkout and/or fork it. For specific details take a look at the project's respective `README.md` files. There you will find details on things like requirements, coding approaches, and instruction on running the applications. ## Java application Code of the Java demo application can be found [here](https://github.com/infobip/infobip-api-java-demo). In the repository's `README.md` you will find instruction on how to checkout, compile and run the code yourself. [block:callout] { "type": "info", "title": "Code documentation", "body": "Java demo application uses detailed code comments to illustrate and explain all the key parts of integrating with the Infobip API. User interface components are contained in dedicated packages so that the business logic code can be used as a guideline for writing server side applications as well." } [/block] Additionally, you can download the prepackaged application [here](https://www.infobip.com/assets/downloads/InfobipSmsDemoApp/InfobipSmsDemoApp.jar). The application does not require any installation and can be run immediately after download. ## PHP application PHP application's code can be found [here](https://github.com/infobip/infobip-api-php-tutorial/tree/api-client-example). Note that this repository has 2 branches. The `master` branch illustrates how to integrate with the Infobip API manually, while the above linked `api-client-example` branch uses the PHP client library to make the HTTP API calls. [block:callout] { "type": "info", "title": "Tutorial", "body": "PHP demo application is accompanied by a fully fledged, step by step tutorial that you can follow along in order to recreate the app. You can find the tutorial text in the repositories `README.md` file, or on our [blog](https://www.infobip.com/en/blog/sms-api-php-client-library-for-web-apps-tutorial)." } [/block]