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.

Copy to Clipboard

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

Copy to Clipboard

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.

      Copy to Clipboard

      Simplified contact

      One line of code to create a contact.

      Copy to Clipboard

      Or get a contactlist in one line

      Copy to Clipboard

      Send an SMS

      Send an SMS with repeat, in the future, to a contact or contactlist.

        Copy to Clipboard
        Copy to Clipboard

        Send multiple SMS in batch

        Here you can send up to 999 SMS per request. Faster for everyone.

          Copy to Clipboard
          Copy to Clipboard

          List of parameters when sending a message

          Copy to Clipboard

          Update scheduled SMS

          Copy to Clipboard
          Copy to Clipboard

          Delete message

          You can delete messages that are not yet sent.

            Copy to Clipboard
            Copy to Clipboard

            Get scheduled unsent messages

            Copy to Clipboard
            Copy to Clipboard

            Get sent messages

            Copy to Clipboard
            Copy to Clipboard

            Get received messages

            Use keyword flag to get only messages received on a given keyword.

              Copy to Clipboard
              Copy to Clipboard

              Get message status

              Copy to Clipboard
              Copy to Clipboard

              Contact filter

              When working with contacts and contactlists you can use filtering like this on several occations

                Copy to Clipboard

                Create contact

                Copy to Clipboard
                Copy to Clipboard

                Get contact details

                Copy to Clipboard
                Copy to Clipboard

                Update contact

                Copy to Clipboard
                Copy to Clipboard

                Delete contact

                Copy to Clipboard
                Copy to Clipboard

                Create contactlist

                Copy to Clipboard
                Copy to Clipboard

                Get contactlist

                This returns the contactlist along with all the ID of the contacts in the list

                  Copy to Clipboard
                  Copy to Clipboard

                  Update and rename a contactlist

                  Copy to Clipboard
                  Copy to Clipboard

                  Delete contactlist

                  Copy to Clipboard
                  Copy to Clipboard

                  Add contact to contactlist

                  Copy to Clipboard
                  Copy to Clipboard

                  Remove contact from contactlist

                  Copy to Clipboard
                  Copy to Clipboard

                  Get number of contacts in contactlist

                  Copy to Clipboard
                  Copy to Clipboard

                  Get contacts in contactlists

                  Getting contacts in contactlist with an optional filter property

                  Copy to Clipboard
                  Copy to Clipboard

                  Get contacts not in contactlists

                  Copy to Clipboard
                  Copy to Clipboard

                  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.

                  Copy to Clipboard
                  Copy to Clipboard

                  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.

                  Copy to Clipboard
                  Copy to Clipboard

                  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.

                  Copy to Clipboard
                  Copy to Clipboard

                  Get all short URLs

                  Get details on a short URL. You can get the details either by ID or by the short URL itself.

                  Copy to Clipboard
                  Copy to Clipboard