List all campaigns


URL:

https://api2.protexting.com/v1/mms-to-screen/index?access_token=<your_access_token>


Method:

GET

Response parameters:

Parameter Description
Id Campaign Id, INTEGER
Title Campaign Name, STRING
Keywords Keywords Names, STRING
StartDate Campaign Start Date, STRING
EndDate Campaign End Date, STRING
 Status Campaign's status, STRING

Example Request:

curl -i -H "Accept:application/xml" "https://api2.protexting.com/v1/mms-to-screen/index?access_token=your_access_token"

 

Example Response Headers:

Status Code: 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Rate-Limit-Limit: 60
X-Rate-Limit-Remaining: 59
X-Rate-Limit-Reset: 0
X-Pagination-Total-Count: 10
X-Pagination-Page-Count: 1
X-Pagination-Current-Page: 1
X-Pagination-Per-Page: 100Link: <https://api2.protexting.com/v1/mms-to-screen/index?access_token=your_access_token>; rel=self
Vary: Accept-Encoding,User-Agent
Content-Length: 453
Keep-Alive: timeout=15, max=70
Connection: Keep-AliveContent-Type: application/json; charset=UTF-8

Example Response Body:

[
    {
    	"Id": 100,
        "Title": "My Campaign",
        "Keywords": ["MyKeyWord"],
        "StartDate": "2016-01-01 01:00:00",
        "EndDate": "2017-01-01 01:00:00",
        "Status": "Active",
    },
    {
    	"Id": 101,
        "Title": "My Campaign 2",
        "Keywords": ["MyKeyWord2"],
        "StartDate": "2016-01-01 01:00:00",
        "EndDate": "2017-01-01 01:00:00",
        "Status": "Inactive",
    }
]
		
<response>
    <item>
    	<Id>100</Id>
        <Title>My Campaign</Title>
<Keywords>
<item>MyKeyword</item>
</Keywords>
<StartDate>2016-01-01 01:00:00</StartDate>
<EndDate>2017-01-01 01:00:00</EndDate>
<Status>Active</Status> </item>
<item>
<Id>101</Id>
<Title>My Campaign</Title>
<Keywords>
<item>MyKeyword2</item>
</Keywords>
<StartDate>2016-01-01 01:00:00</StartDate>
<EndDate>2017-01-01 01:00:00</EndDate>
<Status>Active</Status>
</item> </response>

HTTP Status Codes:

The standard HTTP Status Codes are used. More information is available here: http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml

Error Codes:

Error Codes and Examples here »