PHP-SDK
Dokumentasjon og eksempler
Før du begynner
Install latest version of the SDK with Composer: composer require «intellipush/intellipush-php-sdk-v2:dev-master». Introduction to composer here or download directly from GitHub. Leave feedback, bugs, and feature requests on Github, or contact us on email: post@nullintellipush.no.
Setup automatic loading of the Intellipush library.
Incoming URL
All incoming SMS that is forwarded to an URL from keyword settings page, is sent with the following POST parameters.
It is important to return a HTTP 200, else the URL will not be marked as delivered, and we will retry to trigger the URL again and again until we have tried 10 times, then it will be marked as permanently failed.
- – request_sender is the phonenumber which the number is sent from.
- – keyword is the main keyword.
- – sub_keyword is the sub keyword if this is setup to be used.
- – message is the actual message sent.
Get user account details
Simplified functions
This is the most used functions in Intellipush in one line of code. If you want more flexibility, and more functions scroll down to see how to fully use the SDK.
Simplified SMS
Sending an SMS with one line of code.
Simplified contact
One line of code to create a contact.
Or get a contactlist in one line
Send an SMS
Send an SMS with repeat, in the future, to a contact or contactlist.
Send multiple SMS in batch
Here you can send up to 999 SMS per request. Faster for everyone.
List of parameters when sending a message
Update scheduled SMS
Delete message
You can delete messages that are not yet sent.
Get scheduled unsent messages
Get sent messages
Get received messages
Use keyword flag to get only messages received on a given keyword.
Get message status
Contact filter
When working with contacts and contactlists you can use filtering like this on several occations
Create contact
Get contact details
Update contact
Delete contact
Create contactlist
Get contactlist
This returns the contactlist along with all the ID of the contacts in the list
Update and rename a contactlist
Delete contactlist
Add contact to contactlist
Remove contact from contactlist
Get number of contacts in contactlist
Get contacts in contactlists
Getting contacts in contactlist with an optional filter property
Get contacts not in contactlists
Create short URL
You can create a short url, and later make child URLs for tracking individual contacts, with all stats collected on one parent URL.
Create child short URL
Create a child short url, this way you can have individual URLs for each contact, and later track if a certain contact has visited it. You can also filter on contact_id, phonenumber and email when listing all URLs.
Get short URL details by ID or URL
Get details on a short URL. You can get the details either by ID or by the short URL itself.
Get all short URLs
Get details on a short URL. You can get the details either by ID or by the short URL itself.