POST https://socialmintshare.net/api/facebook/feed
Parameter | Type | Description |
---|---|---|
Header |
Authorization |
Required. Your API key |
message |
string |
Required. Your Status |
You wil get Page Name and Post id In response
{
"Page Name": {
"id": "101694652511438_159760810038155"
}
}
POST https://socialmintshare.net/api/facebook/pic
Parameter | Type | Description |
---|---|---|
Header |
Authorization |
Required. Your API key |
message |
string |
Required. Your Status |
img_url |
url |
Required. Your Image |
You wil get Page Name and Post id In response
{
"Page Name": {
"id": "101694652511438_159760810038155"
}
}
POST https://socialmintshare.net/api/instagram/pic
Parameter | Type | Description |
---|---|---|
Header |
Authorization |
Required. Your API key |
message |
string |
Optional. Your Caption |
imgurl |
url |
Required. Your Image |
You wil get Page Name and Post id In response
{
"Page Name": {
"id": "101694652511438_159760810038155"
}
}
POST https://socialmintshare.net/api/twitter/tweet
Parameter | Type | Description |
---|---|---|
Header |
Authorization |
Required. Your API key |
message |
string |
Required. Your Status |
You wil get Page Name and Post id In response
{
"created_at": "Wed Oct 10 20:19:24 +0000 2018"
}
POST https://socialmintshare.net/api/twitter/tweetMedia
Parameter | Type | Description |
---|---|---|
Header |
Authorization |
Required. Your API key |
message |
string |
Required. Your aption |
img_url |
url |
Required. Your Image |
You wil get Page Name and Post id In response
{
"created_at": "Wed Oct 10 20:19:24 +0000 2018"
}
POST https://socialmintshare.net/api/reddit/feed
Parameter | Type | Description |
---|---|---|
Header |
Authorization |
Required. Your API key |
title |
string |
Required. Your title |
text |
string |
Required. Your text |
You wil get a very wierd response from reddit
{"jquery": [[0, 1, "call", ["body"]], [1, 2, "attr", "find"],
[2, 3, "call", [".status"]], [3, 4, "attr", "hide"], [4, 5, "call", []],
[5, 6, "attr", "html"], [6, 7, "call", [""]], [7, 8, "attr", "end"],
[8, 9, "call", []], [1, 10, "attr", "redirect"], [10, 11, "call",
["https://www.reddit.com/r/u_MoHiD420/comments/xo4w6y/some_titile/"]],
[1, 12, "attr", "find"], [12, 13, "call", ["*[name=url]"]],
[13, 14, "attr", "val"], [14, 15, "call", [""]], [15, 16, "attr", "end"], [16, 17, "call", []],
[1, 18, "attr", "find"], [18, 19, "call", ["*[name=text]"]], [19, 20, "attr", "val"],
[20, 21, "call", [""]], [21, 22, "attr", "end"], [22, 23, "call", []],
[1, 24, "attr", "find"], [24, 25, "call", ["*[name=title]"]],
[25, 26, "attr", "val"], [26, 27, "call", [" "]], [27, 28, "attr", "end"],
[28, 29, "call", []]], "success": true}
At the end success true or false incase anything go wrong
POST https://socialmintshare.net/api/reddit/pic
Parameter | Type | Description |
---|---|---|
Header |
Authorization |
Required. Your API key |
title |
string |
Required. Your caption |
img_url |
url |
Required. Your Image |
You wil get Something Like This
{"jquery": [[0, 1, "call", ["body"]], [1, 2, "attr", "find"],
[2, 3, "call", [".status"]], [3, 4, "attr", "hide"], [4, 5, "call", []],
[5, 6, "attr", "html"], [6, 7, "call", [""]], [7, 8, "attr", "end"],
[8, 9, "call", []], [1, 10, "attr", "redirect"], [10, 11, "call",
["https://www.reddit.com/r/u_MoHiD420/comments/xo4w6y/some_titile/"]],
[1, 12, "attr", "find"], [12, 13, "call", ["*[name=url]"]],
[13, 14, "attr", "val"], [14, 15, "call", [""]], [15, 16, "attr", "end"], [16, 17, "call", []],
[1, 18, "attr", "find"], [18, 19, "call", ["*[name=text]"]], [19, 20, "attr", "val"],
[20, 21, "call", [""]], [21, 22, "attr", "end"], [22, 23, "call", []],
[1, 24, "attr", "find"], [24, 25, "call", ["*[name=title]"]],
[25, 26, "attr", "val"], [26, 27, "call", [" "]], [27, 28, "attr", "end"],
[28, 29, "call", []]], "success": true}
POST https://socialmintshare.net/api/telegram/feed
Parameter | Type | Description |
---|---|---|
Header |
Authorization |
Required. Your API key |
message |
string |
Required. Your message |
You wil get Chat id Name and User name
POST https://socialmintshare.net/api/telegram/pic
Parameter | Type | Description |
---|---|---|
Header |
Authorization |
Required. Your API key |
message |
string |
Required. Your caption |
img_url |
url |
Required. Your Image |
You wil get Chat id Name and User name
POST https://socialmintshare.net/api/discord/feed
Parameter | Type | Description |
---|---|---|
Header |
Authorization |
Required. Your API key |
message |
string |
Required. Your message |
POST https://socialmintshare.net/api/discord/pic
Parameter | Type | Description |
---|---|---|
Header |
Authorization |
Required. Your API key |
message |
string |
Required. Your caption |
img_url |
url |
Required. Your Image |
POST https://socialmintshare.net/api/pintrest/pin
Parameter | Type | Description |
---|---|---|
Header |
Authorization |
Required. Your API key |
title |
string |
Required. Title |
description |
string |
Required. Description |
img_url |
string |
Required. Image Url |
"message": "The given data was invalid.",
"errors": {
"message": [
"The message field is required."
]
}
"message": "The given data was invalid.",
"errors": {
"img_url": [
"The img url field is required."
]
}
"message": "The given data was invalid.",
"errors": {
"caption": [
"The caption field is required."
]
}
{
"message": "Unauthenticated."
}
Sometimes you may get a response from Social Media Platform itself about limit issues OAuth Issues or user restrictions
Status Code | Description |
---|---|
401 | UNAUTHENTICATED |
201 | CREATED |
500 | INTERNAL SERVER ERROR |
400 | BAD REQUEST |
422 | UNPROCESSABLE CONTENT |
These are Some API End points your website will use in order to integrate the Social Share feature,
These Api Enpoints will Only work with Socialmint
platform
In order to link your platform you first need to signup by sending user email and name and you will get Bearer token In reponse you need to save this token in database for user all the other api end points require this token in Authorization Header
POST https://socialmintshare.net/api/socialmintshare/signup
Parameter | Type | Description |
---|---|---|
name |
string |
Required. |
email |
string |
Required. |
{Bearer_Token :1|ZxceCzsZQ2jQyJIMJG8rExRbm2FJdqtv3kg }
Status Code | Description |
---|---|
201 | CREATED |
400 | BAD REQUEST |
409 | USER_EXSISTS |
500 | INTERNAL SERVER ERROR |
Linking Social Media Platform require redirect Url from the server you will make a call to server for redirect url and server will genarate a redirect url and send as response you will redirect the user for completing Auth Logic
GET https://socialmintshare.net/api/socialmintshare/twitter/login
GET https://socialmintshare.net/api/socialmintshare/facebook/login
GET https://socialmintshare.net/api/socialmintshare/instagram/login
GET https://socialmintshare.net/api/socialmintshare/reddit/login
GET https://socialmintshare.net/api/socialmintshare/discord/login
GET https://socialmintshare.net/api/socialmintshare/pintrest/login
Parameter | Type | Description |
---|---|---|
Header |
Authorization |
Bearer_Token. |
{"Successfully Connected" , 201 }
{"Error message" , 400 }
Status Code | Description |
---|---|
201 | CREATED |
400 | BAD REQUEST |
409 | USER_EXSISTS |
500 | INTERNAL SERVER ERROR |
For getting account data we need Bearer_Token
in Authorization Header
and you will receive Array of Accounts Data that are linked to specific
user
GET https://socialmintshare.net/api/socialmintshare/accounts
Parameter | Type | Description |
---|---|---|
Header |
Authorization |
Bearer_Token. |
{
"FACEBOOK": {
"Status": false,
"Multiple_Pages": false,
"Name": " No Account Linked"
},
"INSTAGRAM": {
"Status": false,
"Multiple_Pages": false,
"Name": " No Account Linked"
},
"TWITTER": {
"Status": false,
"Name": " No Account Linked"
},
"REDDIT": {
"Status": false,
"Name": " No Account Linked"
},
"DISCORD": {
"Status": false,
"Multiple_Channels": false,
"Name": " No Account Linked"
},
"PINTREST": {
"Status": false,
"Multiple_Boards": false,
"Name": " No Account Linked"
}
}
Status Code | Description |
---|---|
401 | UNAUTHENTICATED |
200 | SUCCESS |
500 | INTERNAL SERVER ERROR |
400 | BAD REQUEST |
For Unlinking User Account We will make a call to following End points with Delete
http verb and Bearer_Token
in Authorization
Header
Parameter | Type | Description |
---|---|---|
Header |
Authorization |
Bearer_Token. |
DELETE : https://socialmintshare.net/api/socialmintshare/facebook/unlink
{"Facebook Unlinked Successfully"}
DELETE : https://socialmintshare.net/api/socialmintshare/instagram/unlink
{"Instagram Unlinked Successfully"}
DELETE : https://socialmintshare.net/api/socialmintshare/twitter/unlink
{"Twitter Unlinked Successfully}
All Linked platforms can be unlinked just need to replace Social Media App Name
In Url like as above
DELETE : https://socialmintshare.net/api/socialmintshare/{Social Name}/unlink
{"Account Unlinked Successfully}
Status Code | Description |
---|---|
401 | UNAUTHENTICATED |
500 | INTERNAL SERVER ERROR |
400 | BAD REQUEST |
404 | NOT_FOUND |
Sometimes we have multiple user pages that user selected from Facebook OAuth Screen specially for instagram and facebook
We want to select only one Of the pages for Linking We can force the user to select one page here are somme routes for
that purpose,id
is provided in Array of Accounts if user have multiple Pages,Channels or Boards for facebook,instagram
,Discord or Pintrest respectively We have a similar problem with discord and pinterest we may have multiple discord channel
or pintrest user boards we will force the user to use one of them for posting
Parameter | Type | Description |
---|---|---|
Header |
Authorization |
Bearer_Token. |
id |
string |
id. |
POST : https://socialmintshare.net/api/socialmintshare/facebook/select
POST : https://socialmintshare.net/api/socialmintshare/instagram/select
POST : https://socialmintshare.net/api/socialmintshare/discord/select
POST : https://socialmintshare.net/api/socialmintshare/pinterest/select
{"Successfully Connected"}
Status Code | Description |
---|---|
200 | SUCCESS |
401 | UNAUTHENTICATED |
500 | INTERNAL SERVER ERROR |
400 | BAD REQUEST |
404 | NOT_FOUND |