Posts

These API calls deal with posts.

You can:

GET/post/{Id}

Display detailed information about a post.

Options
Parameter Type Description Required
Post Id Integer The ID of the post that is being accessed or manipulated. Yes
Token String The token is a dedicated authorization key provided to the client to consume the API. Yes
Auth String The authentication key ensures the user of the API has been authenticated to use the service. The authentication key can be obtained by making a call to /user with the user’s credentials. Yes
Example JSON Response
{
    "Id": 1234,
    "Content": "",
    "Creator": {
        "Id": 20,
        "Name": "MDM",
        "Avatar": "http://s3.amazonaws.com/scribblelive-avatars/mdm.jpg"
    },
    "Type": "IMAGE",
    "Created": "\/Date(1205378240000+0000)\/",
    "LastModified": "\/Date(1205378240000+0000)\/",
    "IsComment": 0,
    "IsStuck": 0,
    "IsDeleted": 0,
    "IsApproved": 1,
    "Media": [{
        "Type": "IMAGE",
        "Url": "http://s3.amazonaws.com/shiftedit_thread_58/0939e825-0c7b-47f2-8b1c-4ffd33a214da.jpg"
    }],
    "Source": "",
    "EventId": 58
}

GET/post/{Id}/approve

If the post is in moderation, approve the post into the event. If the post is On Deck, approve the post into the event.

Options
Parameter Type Description Required
Post Id Integer The ID of the post that is being accessed or manipulated. Yes
Token String The token is a dedicated authorization key provided to the client to consume the API. Yes
Auth String The authentication key ensures the user of the API has been authenticated to use the service. The authentication key can be obtained by making a call to /user with the user’s credentials. Yes
Example JSON Response
{
    "Id": 51826571,
    "Content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent tellus mauris, lobortis eu condimentum vel, faucibus at tortor. ",
    "Creator": {
        "Id": 3768,
        "Name": "Matt",
        "Avatar": "http://avatars.scribblelive.com/2009/11/4/6269204a-8b0c-43d2-91a4-83c56fa5fc31.jpg"
    },
    "Type": "TEXT",
    "Created": "\/Date(1363631679000+0000)\/",
    "LastModified": "\/Date(1363631679000+0000)\/",
    "IsComment": 0,
    "IsStuck": 0,
    "IsDeleted": 0,
    "IsApproved": 1,
    "Source": "twitter",
    "EventId": 39048
}

GET/post/{Id}/delete

Delete the post.

Options
Parameter Type Description Required
Post Id Integer The ID of the post that is being accessed or manipulated. Yes
Token String The token is a dedicated authorization key provided to the client to consume the API. Yes
Auth String The authentication key ensures the user of the API has been authenticated to use the service. The authentication key can be obtained by making a call to /user with the user’s credentials. Yes
Example JSON Response
{
    "Id": 51826571,
    "Content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent tellus mauris, lobortis eu condimentum vel, faucibus at tortor. ",
    "Creator": {
        "Id": 3768,
        "Name": "Matt",
        "Avatar": "http://avatars.scribblelive.com/2009/11/4/6269204a-8b0c-43d2-91a4-83c56fa5fc31.jpg"
    },
    "Editor": {
        "Id": 58932,
        "Name": "Matt (ScribbleLive)",
        "Avatar": "http://avatars.scribblelive.com/2012/11/29/edeca6fa-9d9d-49f0-9072-c77ce52d5aa5.jpg"
    },
    "Type": "TEXT",
    "Created": "\/Date(1363631679000+0000)\/",
    "LastModified": "\/Date(1363633724000+0000)\/",
    "IsComment": 0,
    "IsStuck": 0,
    "IsDeleted": 1,
    "IsApproved": 1,
    "Source": "twitter",
    "EventId": 39048
}

GET/post/{Id}/stick

Stick the post in its event.

Options
Parameter Type Description Required
Post Id Integer The ID of the post that is being accessed or manipulated. Yes
Token String The token is a dedicated authorization key provided to the client to consume the API. Yes
Auth String The authentication key ensures the user of the API has been authenticated to use the service. The authentication key can be obtained by making a call to /user with the user’s credentials. Yes
Example JSON Response
{
    "Id": 68023457,
    "Content": "Increase traffic to your live events through promotion http://ow.ly/jaWHN",
    "Creator": {
        "Id": 4107,
        "Name": "ScribbleLive",
        "Avatar": "http://avatars.scribblelive.com/2010/7/15/be78f197-ab10-4aa1-b98c-033b2ed46eba.gif"
    },
    "Editor": {
        "Id": 58932,
        "Name": "Matt (ScribbleLive)",
        "Avatar": "http://avatars.scribblelive.com/2012/11/29/edeca6fa-9d9d-49f0-9072-c77ce52d5aa5.jpg"
    },
    "Type": "TEXT",
    "Created": "\/Date(1363633833000+0000)\/",
    "LastModified": "\/Date(1363635711000+0000)\/",
    "IsComment": 0,
    "IsStuck": 1,
    "IsDeleted": 0,
    "IsApproved": 1,
    "Source": "twitter",
    "EventId": 39048
}

GET/post/{Id}/unstick

Unstick the post in its event.

Options
Parameter Type Description Required
Post Id Integer The ID of the post that is being accessed or manipulated. Yes
Token String The token is a dedicated authorization key provided to the client to consume the API. Yes
Auth String The authentication key ensures the user of the API has been authenticated to use the service. The authentication key can be obtained by making a call to /user with the user’s credentials. Yes
Example JSON Response
{
    "Id": 68023457,
    "Content": "Increase traffic to your live events through promotion http://ow.ly/jaWHN",
    "Creator": {
        "Id": 4107,
        "Name": "ScribbleLive",
        "Avatar": "http://avatars.scribblelive.com/2010/7/15/be78f197-ab10-4aa1-b98c-033b2ed46eba.gif"
    },
    "Editor": {
        "Id": 58932,
        "Name": "Matt (ScribbleLive)",
        "Avatar": "http://avatars.scribblelive.com/2012/11/29/edeca6fa-9d9d-49f0-9072-c77ce52d5aa5.jpg"
    },
    "Type": "TEXT",
    "Created": "\/Date(1363635770000+0000)\/",
    "LastModified": "\/Date(1363635770000+0000)\/",
    "IsComment": 0,
    "IsStuck": 0,
    "IsDeleted": 0,
    "IsApproved": 1,
    "Source": "twitter",
    "EventId": 39048
}

GET/post/{Id}/edit

(TEXT posts only) Edit the content of the post.

Options
Parameter Type Description Required
Post Id Integer The ID of the post that is being accessed or manipulated. Yes
Token String The token is a dedicated authorization key provided to the client to consume the API. Yes
Content String The content to be edited in the post. Yes
Auth String The authentication key ensures the user of the API has been authenticated to use the service. The authentication key can be obtained by making a call to /user with the user’s credentials. Yes
Example JSON Response
{
    "Id": 67761229,
    "Content": "Just finished my Critical Thinking assignment. It's pretty weird to be doing school work!",
    "Creator": {
        "Id": 58932,
        "Name": "Matt (ScribbleLive)",
        "Avatar": "http://avatars.scribblelive.com/2012/11/29/edeca6fa-9d9d-49f0-9072-c77ce52d5aa5.jpg"
    },
    "Type": "TEXT",
    "Created": "\/Date(1363473207000+0000)\/",
    "LastModified": "\/Date(1363636060000+0000)\/",
    "IsComment": 0,
    "IsStuck": 0,
    "IsDeleted": 0,
    "IsApproved": 1,
    "Location": {
        "Lat": 43.538909099999998,
        "Long": -79.860996200000017
    },
    "Source": "",
    "EventId": 39048
}

GET/post/{Id}/ondeck

Moves the post from a moderated state into the On Deck state.

Options
Parameter Type Description Required
Post Id Integer The ID of the post that is being accessed or manipulated. Yes
Token String The token is a dedicated authorization key provided to the client to consume the API. Yes
Auth String The authentication key ensures the user of the API has been authenticated to use the service. The authentication key can be obtained by making a call to /user with the user’s credentials. Yes
Example JSON Response
{
    "Id": 51854884,
    "Content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent tellus mauris, lobortis eu condimentum vel, faucibus at tortor. ",
    "Creator": {
        "Id": 21579061,
        "Name": "Matt",
        "Avatar": "http://avatars.scribblelive.com/2012/10/15/a9e7072d-b835-49e1-bdbb-2987fc2b668f.jpg"
    },
    "Type": "TEXT",
    "Created": "\/Date(1363636576000+0000)\/",
    "LastModified": "\/Date(1363636576000+0000)\/",
    "IsComment": 0,
    "IsStuck": 0,
    "IsDeleted": 0,
    "IsApproved": 1,
    "Source": "",
    "EventId": 39048
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s