Social Profiles

The following endpoint can be used to get, list and delete social profiles from Oktopost. The profile Ids can be used for posting or filtering on other endpoints. 

Get Social Profile

Get a single social profile by Id.

Example Request

curl -i https://api.oktopost.com/v2/credential/003-001000000000000-10795428XXXXXXXXX

Example Result

{  
    "Result":true,
    "Credential":{  
        "Id":"003-001000000000000-10795428XXXXXXXXX",
        "Created":"2015-10-26 21:02:30",
        "Name":"Oktopost's Twitter",
        "Status":"valid",
        "Network":"Twitter",
        "ImageLink":"valid",
        "NetworkUsername":"oktopost"
    }
}

List Social Profiles

Example Request

curl -i https://api.oktopost.com/v2/credential?network=Twitter

Parameters

Results can be filtered by network. Acceptable values are: LinkedIn, Twitter, Google and Facebook.

Example Result

{  
    "Result":true,
    "Items":[{  
        "Id":"003-001000000000000-10795428XXXXXXXXX",
        "Created":"2015-10-26 21:02:30",
        "Name":"Oktopost's Twitter",
        "Status":"valid",
        "Network":"Twitter",
        "ImageLink":"valid",
        "NetworkUsername":"oktopost"
    },
    ...
    ],
    "Total":21
}

Delete a Social Profile

Note that deleting a profile will delete all scheduled posts using it.

Example Request

curl -i https://api.oktopost.com/v2/credential/003-001000000000000-10795428XXXXXXXXX -X DELETE

Feedback and Knowledge Base