Create your first application on Dialog ideabiz platform


Hi folks, ideabiz is an API management platform which is open to the enterprise. This time we are going to create an application to send digital rewards(Send mobile data as rewards) to the users. You need to have an organization which is registered under the rules and regulations of SL to get services from Dialog ideabiz platform.
First you need to contact the team and discuss the business plan. This post will discuss how to create an application on the platform. Once you are done with the business process, create an application on ideabiz.lk. Then request admins to approve it.





Once you get the approval, please subscribe to Digital rewards and SMS APIs. If I brief you about APIs, Digital rewards allow you to reward your customers, users by Mobile data or by SMS. SMS API allow you to send/receive SMS to the customers / users. You need to get the approval for the subscribed APIs as well. When you asked for the approval, please provide relevant URLs for MO/MT messages and the keyword for SMS API as well. Using this endpoint you can integrate these services to your business. Once you get the approval, you will receive a port number as well.  


Once you get the approval for the APIs, visit docs.ideabiz.lk and download the code for PHP request handler.
(http://docs.ideabiz.lk/SDK_and_Samples/PHP-Request_Handler). Now host these files on the server.
Make sure you placed the file to receive/send SMS as the URL you provide for the MO/MT messages. Read the documentation of the request handler. You need to have the access token for the application. Once the token is expired, you need to re-generate  a token. In the above mentioned request handler, we have written the logic to generate a token once it is expired. Now let’s generate an access token. Please refer the image below.



My application needs to be worked like this,
If I want to send mobile data to a user, I’ll send an SMS to 87717(Port configured from ideabiz) by typing
(App Keyword)<Space>(Amount)<space>(Receivers’ mobile number) . Once user received the mobile data, your mobile should receive an SMS to notify that you have sent the data to the relevant user.


Assume keyword as test and data amount you need to send as 500MB, receiver as 77xxxxxxx.
Once you send an SMS for the 87717 the response body will be following:



4.PNG

This response will send to the URL you provided earlier. Get the response JSON and now you have the amount of data and receiver. Now let’s call the digital reward API from the code itself. Below I have mentioned the JSON for the digital reward API







Once you send the data, the user will notify that he received mobile data via an SMS. The response will be sent to the above mentioned URL. To get notified that data has been delivered successfully, you can use the SMS API again and get an SMS to your mobile.
The response sms will be -  You have sent 500MB data to 77xxxxxxx.

Yeyyy That’s it! Don’t hesitate to comment your problems regarding this article.

Comments

  1. Thanks for sharing this informative blog about SMS API. Its really very useful specially for marketer who wants to show their visibility in market.

    ReplyDelete

Post a Comment

Popular posts from this blog

Hash Functions

CAP THEOREM

How you can manage throttle out errors in WSO2 API Manager