API Reference – Marketing API – Getting Content

Marketing API Method Documentation

©2009-2017 SocketLabs, Inc., Version 0.1, Last Edit: October 23, 2017

GET /content

Synopsis:

Returns the list of email content on your server.

Recommended Usage:

This simple GET call can be used to retrieve the list of email content on your server.

Request Information

HTTP Method:

GET

URL:

https://api.socketlabs.com/marketing/v1/content

Response Format Types:

JSON or XML

Example Request:

GET /marketing/v1/content HTTP/1.1
Host: api.socketlabs.com
Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXX==
Cache-Control: no-cache

Response Parameters

name
The user-defined content name.
id
A server-specific unique content identifier. Use this id when sending through our Injection API.
thumbnailUrl
A temporary URL pointing to a thumbnail image of the content.
thumbnailExpiration
The time and date (UTC) that the thumbnail URL will expire.
created
The time and date (UTC) that the content was added to our system.
updated
The time and date (UTC) that the content was last updated in our system.

Response Examples

Example Response (JSON):

[
    {
        "id": 3, 
        "name": "Fizz Content",
        "thumbnailUrl": "https://www.example.com/url_3.jpg",
        "thumbnailExpiration": "2017-10-23T21:09:48Z",
        "created": "2017-08-08T12:41:56Z",
        "updated": "2017-08-08T12:41:56Z",		
    },
    {
        "id": 5, 
        "name": "Buzz Content",
        "thumbnailUrl": "https://www.example.com/url_5.jpg",
        "thumbnailExpiration": "2017-10-23T21:09:48Z",
        "created": "2017-08-08T12:41:56Z",
        "updated": "2017-08-08T12:41:56Z",		
    }
]

Example Response (XML):

<ArrayOfContent xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Content>
	<Created>2017-08-08T12:41:56Z</Created>
	<Name>Fizz Content</Name>
	<Id>3</Id>
	<ThumbnailExpiration>2017-10-23T20:55:23Z</ThumbnailExpiration>
	<ThumbnailUrl>https://www.example.com/url_3.jpg</ThumbnailUrl>
	<Updated>2017-08-08T12:41:56Z</Updated>
</Content>
<Content>
	<Created>2017-08-22T01:51:02Z</Created>
	<Name>Buzz Content</Name>
	<Id>5</Id>
	<ThumbnailExpiration>2017-10-23T20:55:23Z</ThumbnailExpiration>
	<ThumbnailUrl>https://www.example.com/url_5.jpg</ThumbnailUrl>
	<Updated>2017-08-22T01:51:02Z</Updated>
</Content>
</ArrayOfContent>

Customers Who Trust in SocketLabs

You’re in good company when working with SocketLabs. Here are some companies who have also trusted SocketLabs.

Why SocketLabs?

What Our Customers Are Saying!