📬
MobiPay API Documentation
Mobivate
📬
MobiPay API Documentation
  • 👋Welcome to MobiPay
  • Send SMS via HTTP (MT)
  • Receive SMS via HTTP (MO)
  • Use Cases
    • Send SMS via HTTP (MT) Example
    • Receive SMS via HTTP (MO) Example
    • Gateway Responses
    • Send Silent OBS Billing Message Example
    • Unsubscribe VIA MT Unsubscribe Notification
    • Receive Delivery Receipt via HTTP (DR)
    • Acknowledging MO's and DR's
    • Send A Premium SMS via HTTP (MT) Example
    • Vodafone/Airtel Ghana Billing
  • API Message Paramaters
    • API Message Parameters
    • Send BINARY SMS (MT) parameters
    • Receive SMS (MO) parameters
    • Subscription API (RESTFul)
      • Initiate Subscription (API)
      • Validate PIN (API)
      • Unsubscribing Users (API)
      • Checking Subscription Status (API)
      • Sending Messages To Subscribers (API)
      • Sending Content To Subscribers (API)
    • Content API (RESTFul)
      • Content Types (API)
      • Content Categories (API)
      • Search Content (API)
      • Latest Content Items (API)
      • Content Items (API)
  • Network Double Opt-In
    • Network Double Opt-in (NDOI)
    • Network Double Opt-in (NDOI) Unsubscribe
    • NDOI Keyword Patterns per country
  • MNO Web Opt-in
    • MNO Web Opt-in Introduction
    • MNO Web Opt-In South Africa
    • MNO Web Opt-In Kenya
      • Configuring your campaign
      • Subscribing users to your service
        • Subscribing users via Upstream
        • Subscribing users via Scienlabs
      • Unsubscribing users from your service
      • Receiving callback notifications
    • MNO Web Opt-In Nigeria
      • Subscribing the User to the Service
      • Unsubscribing user from the Service
      • Delivery Notifications
  • UK Direct Carrier Billing
    • UK DCB/Charge to Bill
      • UK Network Flows
Powered by GitBook
On this page

Was this helpful?

  1. API Message Paramaters
  2. Content API (RESTFul)

Search Content (API)

This document aims to detail how to search content via RESTFul api.

To list all available categories available to your account you can make the following GET request:

https://content-api.mobivate.com/v1/<account_id>/item/search/<**offset=0**><**limit=100**>/?search<>=---:---:---:---&search<>

The URL consists of two optional parameters ''offset'' and ''limit''. Incrementing ''offset'' (by multiples of limit) will return the next page of results. Increasing the ''limit'' will return more results in each query.

A search query has FOUR parts. Parts are separated by a semi-colon '':''. Any part of the query can be replaced with a ''*'' to use a wild-card in that place.

Examples

GET https://content-api.mobivate.com/v1/[ACCOUNT_ID]/item/search/0/100?
search[]=*:*:*:*'

By posting the query ''search[]=–:–:–:–'' you can search for the specific ''content_type'':''category'':''artist'':''title'' (in this specific order!) ''artist'' and ''title'' use wild-cards so by entering ''"on"'' in place of ''artist'', you are searching for all artists containing letters 'on' anywhere in their name. (ie. Beyonce, 'Mona Lisa'). For example:

''...?search[]=Games:Sports:*:ball&search[]=Videos:Funny:*:*''

Please note: You can search multiple queries in a single request.

The query above can be interpreted as:

  • Any item in of type Games and in category "Sports" containing "ball" anywhere in the title.

  • And, All Video Items in category "Funny".

PreviousContent Categories (API)NextLatest Content Items (API)

Last updated 1 year ago

Was this helpful?