This is a simple documention to use FBGroup Plugin APIs. API accept both GET and POST request.
- requestURL: https://www.justmotorads.ie/api-fbgroup
Use apiKey generated in plugin admin dashboard to authenticate request.
Two values are accepted for this parameter :
- getList : To get pending item list
- postImage : To post images to item
This value only used with 'getList' value for 'fbGroupAction' It accept valid 'unix timestamp'
If sinceTime is not passed repose will contain all items without images.
It should be a valid numeric Id of osclass item e.g. 2458
Accept json encode list of image urls.
["https://facebook.com/assets/img1.jpg", "https://facebook.com/assets/img2.jpg"]
FBGroupAPI respond with json on request.
{
"status":"success",
"result":[
{ "itemId":"311",
"fbPostId":"1445816899055366_1988602004776850",
"fbPostTime":"1543919638"
},
{ "itemId":"273",
"fbPostId":"1445816899055366_1988587814778269",
"fbPostTime":"1543919637"
}
]
}
{
"status": "error",
"message": "Example error message"
}
{
"status": "success",
"message": "Image uploaded to Item: itemId"
}
{
"status": "error",
"message": "Image uploaded error occured"
}
That's it for now, I hope it helps.