Posts
Known as 'Updates' in the API.
get
https://api.tiny.plus
/v2/updates/{{id}}
Get a Post by ID
jQuery
PHP
var settings = {
"url": "https://api.tiny.plus/v2/updates/{{id}}",
"method": "GET",
"headers": {
"Authorization": "{{user_access_token}}"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.tiny.plus/v2/updates/{{id}}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"Authorization: {{user_access_token}}"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
get
https://api.tiny.plus
/v2/updates
List Posts
jQuery
var settings = {
"url": "https://api.tiny.plus/v2/updates?me&return_format=array",
"method": "GET",
"headers": {
"Authorization": "{{user_access_token}}"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
post
https://api.tiny.plus
/v2/updates
Create a Post
delete
https://api.tiny.plus
/v2/updates/{{id}}
Delete a Post
Field | Type | Details | Permission |
id | Number | Unique record identifier. | Read-only |
name | Auto-generated String | This is an auto-generated shortening of the start of the description field, with all non-printable characters removed. | Full |
description | String REQUIRED | The body of the post. | Full |
description_HTML | String | The description field but with certain HTML elements intact, such as embedded videos. | Read-only |
created_date | String (YYYY-MM-DD hh:mm:ss) | Date record was first created. | Read-only |
modified_date | String (YYYY-MM-DD hh:mm:ss) | Date record was last modified. | Read-only |
created_user | Number | ID of user who made the record. | Read-only |
modified_user | Number | ID of user who last edited the record. | Read-only |
assigned_user | Number | ID of assigned user. | Full |
record_url | String | The fully qualified URI of the record. | Read-only |
created_user_record | Object | An object containing details about the created_user. | Read-only |
attached | Object | An array of objects containing all the related records attached to this post. | Read-only |
images | Object | An array of objects containing details of any images associated with this post. | Read-only |
social | Object | Refer below. | Read-only |
broadcast | Boolean | Whether to show this post in the main tiny+ news feed. Either true or false . Default is true . | Full |
Last modified 2yr ago