API Documentation

Introduction

Add Social Feeds to your Website, Screens or App with our API Solutions

tagembed lets you create beautiful social hubs for your websites with a click of a button.

Our API solutions give you absolute control of the design and layout of the content for your websites or screen displays. This is the best way to integrate the tagembed data on your apps. Find below documentation for the same.

Post Limit 100 Posts/request
API Access Currently, we are providing API access with API Starter and API Advanced plans.
Update Time Update time is based on your Pricing Plan
Request Limit 1 Request/ Per Minute
User Key You can find user key in your Tagembed My Account Section

*API Options will be only shown when your account is having Tagembed API access

Format JSON and XML

Authentication :

  • Each API request requires an API key either as a HTTP Header or included as a query string. You can find your API key in the Tagembed Account Section.
  • Your API key has many privileges, be sure to keep it secret! Do not share the key in publicly accessible areas such GitHub, client-side code, and so forth.

Response Codes :

The common HTTP Response Status Codes are used.

1. Successful Response :
  • 200 Successful Request
2. Error Responses :
  • 400 Bad Request
  • 401 Unauthorized Request
  • 404 Not Found
  • 405 Method Not Allowed
  • 406 Not Acceptable
  • 407 Api is not available in this plan OR Wrong user key
  • 408 Your Api limit is exceeded
  • 409 Widget is not active
  • 410 Widget s not available for this user key
  • 412 codecondition Failed
  • 500 Internal Server Error

Endpoint :

https://api.tagembed.com/app/api/

Request Header:

Authorization: <User Key>

Posts:

Posts that can be integrated on your website.

1. Widget Id - Get Posts

Request : POST
Field Optional Type Remark
widgetid No Number Widget id
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.tagembed.com/app/api/',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('widgetId' => '5613'),
CURLOPT_HTTPHEADER => array(
'Authorization: 56200ef68981fb037175a9ecca66c4d0'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
                                                
var myHeaders = new Headers();
myHeaders.append("Authorization", "56200ef68981fb037175a9ecca66c4d0");
var formdata = new FormData();
formdata.append("widgetId", "5613");
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: formdata,
redirect: 'follow'
};
fetch("https://api.tagembed.com/app/api/", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
                                                
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append('widgetId', '5613');
var config = {
method: 'post',
url: 'https://api.tagembed.com/app/api/',
headers: {
'Authorization': '56200ef68981fb037175a9ecca66c4d0',
...data.getHeaders()
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
                                                
var client = new RestClient("https://api.tagembed.com/app/api/");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "56200ef68981fb037175a9ecca66c4d0");
request.AlwaysMultipartFormData = true;
request.AddParameter("widgetId", "5613");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
                                                
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("widgetId","5613")
.build();
Request request = new Request.Builder()
.url("https://api.tagembed.com/app/api/")
.method("POST", body)
.addHeader("Authorization", "56200ef68981fb037175a9ecca66c4d0")
.build();
Response response = client.newCall(request).execute();
                                                
import http.client
import mimetypes
from codecs import encode
conn = http.client.HTTPSConnection("api.tagembed.com")
dataList = []
boundary = 'wL36Yn8afVp8Ag7AmP8qZ0SA4n1v9T'
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=widgetId;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("5613"))
dataList.append(encode('--'+boundary+'--'))
dataList.append(encode(''))
body = b'\r\n'.join(dataList)
payload = body
headers = {
  'Authorization': '56200ef68981fb037175a9ecca66c4d0',
  'Content-type': 'multipart/form-data; boundary={}'.format(boundary)
}
conn.request("POST", "/app/api/", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
                                                
require "uri"
require "net/http"
url = URI("https://api.tagembed.com/app/api/")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = "56200ef68981fb037175a9ecca66c4d0"
form_data = [['widgetId', '5613']]
request.set_form form_data, 'multipart/form-data'
response = https.request(request)
puts response.read_body
                                                
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
var semaphore = DispatchSemaphore (value: 0)
let parameters = [
[
"key": "widgetId",
"value": "5613",
"type": "text"
]] as [[String : Any]]
let boundary = "Boundary-\(UUID().uuidString)"
var body = ""
var error: Error? = nil
for param in parameters {
if param["disabled"] == nil {
let paramName = param["key"]!
body += "--\(boundary)\r\n"
body += "Content-Disposition:form-data; name=\"\(paramName)\""
if param["contentType"] != nil {
body += "\r\nContent-Type: \(param["contentType"] as! String)"
}
let paramType = param["type"] as! String
if paramType == "text" {
let paramValue = param["value"] as! String
body += "\r\n\r\n\(paramValue)\r\n"
} else {
let paramSrc = param["src"] as! String
let fileData = try NSData(contentsOfFile:paramSrc, options:[]) as Data
let fileContent = String(data: fileData, encoding: .utf8)!
body += "; filename=\"\(paramSrc)\"\r\n"
+ "Content-Type: \"content-type header\"\r\n\r\n\(fileContent)\r\n"
}
}
}
body += "--\(boundary)--\r\n";
let postData = body.data(using: .utf8)
var request = URLRequest(url: URL(string: "https://api.tagembed.com/app/api/")!,timeoutInterval: Double.infinity)
request.addValue("56200ef68981fb037175a9ecca66c4d0", forHTTPHeaderField: "Authorization")
request.addValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
request.httpMethod = "POST"
request.httpBody = postData
let task = URLSession.shared.dataTask(with: request) { data, response, error in
guard let data = data else {
print(String(describing: error))
semaphore.signal()
return
}
print(String(data: data, encoding: .utf8)!)
semaphore.signal()
}
task.resume()
semaphore.wait()
                                                
 
package main
import (
"fmt"
"bytes"
"mime/multipart"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.tagembed.com/app/api/"
method := "POST"
payload := &bytes.Buffer{}
writer := multipart.NewWriter(payload)
_ = writer.WriteField("widgetId", "5613")
err := writer.Close()
if err != nil {
   fmt.Println(err)
   return
}
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)

if err != nil {
   fmt.Println(err)
   return
}
req.Header.Add("Authorization", "56200ef68981fb037175a9ecca66c4d0")
req.Header.Set("Content-Type", writer.FormDataContentType())
res, err := client.Do(req)
if err != nil {
   fmt.Println(err)
   return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
   fmt.Println(err)
   return
}
fmt.Println(string(body))
}
                                                
 
curl --location --request POST 'https://api.tagembed.com/app/api/' \
--header 'Authorization: 56200ef68981fb037175a9ecca66c4d0' \
--form 'widgetId="5613"'
                                                
{
"head": {
"status": true,
"code": 200
},
"body": {
"widgetlDetail": {
"widgetName": "API Document ",
"widgetUrl": "api-document-",
"widgetProfanity": "0",
"widgetCreatedAt": "0",
"count": 2
},
"feeds": [
{
"feedName": "avengers",
"networkName": "Twitter",
"feedId": "10090",
"postId": "806",
"postContent": "RT @OuterRimsPhoto: \"...to see if we could become something more...\" #reassemble #playavengers \n\n#Avengers #Marvel #VirtualPhotography #The…",
"postScore": "pos",
"image": "",
"imageList": [],
"postLinkUrl": "1401130620261130242",
"postPin": "0",
"postHighlight": "0",
"postAuthorName": "Hero Fan",
"postUsername": "bob64262049",
"postUserPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postTags": "",
"postCreatedAt": "1622890546",
"postMediaFile": "",
"postUpdatedAt": 1622890749,
"CTAtext": "",
"CTAbackground": "",
"CTAcolor": "",
"CTAurl": "javascript:void(0);"
},
{
"feedName": "avengers",
"networkName": "Twitter",
"feedId": "10090",
"postId": "807",
"postContent": "RT @OuterRimsPhoto: \"...so when they needed us, we could fight the battles...\" #reassemble #playavengers \n\n#Avengers #Marvel #VirtualPhotog…",
"postScore": "pos",
"image": "",
"imageList": [],
"postLinkUrl": "1401130547972395010",
"postPin": "0",
"postHighlight": "0",
"postAuthorName": "Hero Fan",
"postUsername": "bob64262049",
"postUserPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postTags": "",
"postCreatedAt": "1622890529",
"postMediaFile": "",
"postUpdatedAt": 1622890749,
"CTAtext": "",
"CTAbackground": "",
"CTAcolor": "",
"CTAurl": "javascript:void(0);"
}
]
}
}
                                                

2. Number Of Posts - User will get total post as API response

Request : POST
Field Optional Type Remark
widgetid No Number Widget id
Count Yes Number Number Of Post
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.tagembed.com/app/api/',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('widgetId' => '5613','count' => '1'),
CURLOPT_HTTPHEADER => array(
'Authorization: 56200ef68981fb037175a9ecca66c4d0'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
                                                
var myHeaders = new Headers();
myHeaders.append("Authorization", "56200ef68981fb037175a9ecca66c4d0");
var formdata = new FormData();
formdata.append("widgetId", "5613");
formdata.append("count", "1");
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: formdata,
redirect: 'follow'
};
fetch("https://api.tagembed.com/app/api/", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
                                                
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append('widgetId', '5613');
data.append('count', '1');
var config = {
method: 'post',
url: 'https://api.tagembed.com/app/api/',
headers: { 
   'Authorization': '56200ef68981fb037175a9ecca66c4d0', 
   ...data.getHeaders()
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
                                                
var client = new RestClient("https://api.tagembed.com/app/api/");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "56200ef68981fb037175a9ecca66c4d0");
request.AlwaysMultipartFormData = true;
request.AddParameter("widgetId", "5613");
request.AddParameter("count", "1");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
                                                
Unirest.setTimeouts(0, 0);
Httcodesponse response = Unirest.post("https://api.tagembed.com/app/api/")
.header("Authorization", "56200ef68981fb037175a9ecca66c4d0")
.multiPartContent()
.field("widgetId", "5613")
.field("count", "1")
.asString();
                                                
import http.client
import mimetypes
from codecs import encode
conn = http.client.HTTPSConnection("api.tagembed.com")
dataList = []
boundary = 'wL36Yn8afVp8Ag7AmP8qZ0SA4n1v9T'
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=widgetId;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("5613"))
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=count;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("1"))
dataList.append(encode('--'+boundary+'--'))
dataList.append(encode(''))
body = b'\r\n'.join(dataList)
payload = body
headers = {
'Authorization': '56200ef68981fb037175a9ecca66c4d0',
'Content-type': 'multipart/form-data; boundary={}'.format(boundary)
}
conn.request("POST", "/app/api/", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
                                                
require "uri"
require "net/http"
url = URI("https://api.tagembed.com/app/api/")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = "56200ef68981fb037175a9ecca66c4d0"
form_data = [['widgetId', '5613'],['count', '1']]
request.set_form form_data, 'multipart/form-data'
response = https.request(request)
puts response.read_body
                                                
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
var semaphore = DispatchSemaphore (value: 0)
let parameters = [
[
"key": "widgetId",
"value": "5613",
"type": "text"
],
[
"key": "count",
"value": "1",
"type": "text"
]] as [[String : Any]]
         
let boundary = "Boundary-\(UUID().uuidString)"
var body = ""
var error: Error? = nil
for param in parameters {
if param["disabled"] == nil {
let paramName = param["key"]!
body += "--\(boundary)\r\n"
body += "Content-Disposition:form-data; name=\"\(paramName)\""
if param["contentType"] != nil {
   body += "\r\nContent-Type: \(param["contentType"] as! String)"
}
let paramType = param["type"] as! String
if paramType == "text" {
   let paramValue = param["value"] as! String
   body += "\r\n\r\n\(paramValue)\r\n"
} else {
   let paramSrc = param["src"] as! String
   let fileData = try NSData(contentsOfFile:paramSrc, options:[]) as Data
   let fileContent = String(data: fileData, encoding: .utf8)!
   body += "; filename=\"\(paramSrc)\"\r\n"
   + "Content-Type: \"content-type header\"\r\n\r\n\(fileContent)\r\n"
}
}
}
body += "--\(boundary)--\r\n";
let postData = body.data(using: .utf8)
var request = URLRequest(url: URL(string: "https://api.tagembed.com/app/api/")!,timeoutInterval: Double.infinity)
request.addValue("56200ef68981fb037175a9ecca66c4d0", forHTTPHeaderField: "Authorization")
request.addValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
request.httpMethod = "POST"
request.httpBody = postData
let task = URLSession.shared.dataTask(with: request) { data, response, error in 
guard let data = data else {
   print(String(describing: error))
   semaphore.signal()
   return
}
print(String(data: data, encoding: .utf8)!)
semaphore.signal()
}
task.resume()
semaphore.wait()
                                                
package main
import (
  "fmt"
  "bytes"
  "mime/multipart"
  "net/http"
  "io/ioutil"
)
func main() {
  url := "https://api.tagembed.com/app/api/"
  method := "POST"
  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("widgetId", "5613")
  _ = writer.WriteField("count", "2")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  }
  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)
  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Authorization", "56200ef68981fb037175a9ecca66c4d0")
  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()
  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
                                                
curl --location --request POST 'https://api.tagembed.com/app/api/' \
--header 'Authorization: 56200ef68981fb037175a9ecca66c4d0' \
--form 'widgetId="5613"' \
--form 'count="2"'
                                                
{
"head": {
"status": true,
"code": 200
},
"body": {
"widgetlDetail": {
"widgetName": "API Document ",
"widgetUrl": "api-document-",
"widgetProfanity": "0",
"widgetCreatedAt": "0",
"count": 2
},
"feeds": [
{
"feedName": "avengers",
"networkName": "Twitter",
"feedId": "10090",
"postId": "806",
"postContent": "RT @OuterRimsPhoto: \"...to see if we could become something more...\" #reassemble #playavengers \n\n#Avengers #Marvel #VirtualPhotography #The…",
"postScore": "pos",
"image": "",
"imageList": [],
"postLinkUrl": "1401130620261130242",
"postPin": "0",
"postHighlight": "0",
"postAuthorName": "Hero Fan",
"postUsername": "bob64262049",
"postUserPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postTags": "",
"postCreatedAt": "1622890546",
"postMediaFile": "",
"postUpdatedAt": 1622890749,
"CTAtext": "",
"CTAbackground": "",
"CTAcolor": "",
"CTAurl": "javascript:void(0);"
},
{
"feedName": "avengers",
"networkName": "Twitter",
"feedId": "10090",
"postId": "807",
"postContent": "RT @OuterRimsPhoto: \"...so when they needed us, we could fight the battles...\" #reassemble #playavengers \n\n#Avengers #Marvel #VirtualPhotog…",
"postScore": "pos",
"image": "",
"imageList": [],
"postLinkUrl": "1401130547972395010",
"postPin": "0",
"postHighlight": "0",
"postAuthorName": "Hero Fan",
"postUsername": "bob64262049",
"postUserPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postTags": "",
"postCreatedAt": "1622890529",
"postMediaFile": "",
"postUpdatedAt": 1622890749,
"CTAtext": "",
"CTAbackground": "",
"CTAcolor": "",
"CTAurl": "javascript:void(0);"
}
]
}
}
                                                

3. Post Offset - User will get posts starting from post index

Request : POST
Field Optional Type Remark
widgetid No Number Widget id
Start No Number Start
Count Yes Number Number Of Post
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.tagembed.com/app/api/',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('widgetId' => '5613','count' => '2','start' => '0'),
CURLOPT_HTTPHEADER => array(
'Authorization: 56200ef68981fb037175a9ecca66c4d0'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
                                                
var myHeaders = new Headers();
myHeaders.append("Authorization", "56200ef68981fb037175a9ecca66c4d0");
var formdata = new FormData();
formdata.append("widgetId", "5613");
formdata.append("count", "2");
formdata.append("start", "0");
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: formdata,
redirect: 'follow'
};
fetch("https://api.tagembed.com/app/api/", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
                                                
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append('widgetId', '5613');
data.append('count', '2');
data.append('start', '0');
var config = {
method: 'post',
url: 'https://api.tagembed.com/app/api/',
headers: { 
'Authorization': '56200ef68981fb037175a9ecca66c4d0', 
...data.getHeaders()
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
                                                
var client = new RestClient("https://api.tagembed.com/app/api/");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "56200ef68981fb037175a9ecca66c4d0");
request.AlwaysMultipartFormData = true;
request.AddParameter("widgetId", "5613");
request.AddParameter("count", "2");
request.AddParameter("start", "0");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
                                                
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("widgetId","5613")
.addFormDataPart("count","2")
.addFormDataPart("start","0")
.build();
Request request = new Request.Builder()
.url("https://api.tagembed.com/app/api/")
.method("POST", body)
.addHeader("Authorization", "56200ef68981fb037175a9ecca66c4d0")
.build();
Response response = client.newCall(request).execute();
                                                
import http.client
import mimetypes
from codecs import encode
conn = http.client.HTTPSConnection("api.tagembed.com")
dataList = []
boundary = 'wL36Yn8afVp8Ag7AmP8qZ0SA4n1v9T'
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=widgetId;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("5613"))
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=count;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("2"))
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=start;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("0"))
dataList.append(encode('--'+boundary+'--'))
dataList.append(encode(''))
body = b'\r\n'.join(dataList)
payload = body
headers = {
'Authorization': '56200ef68981fb037175a9ecca66c4d0',
'Content-type': 'multipart/form-data; boundary={}'.format(boundary)
}
conn.request("POST", "/app/api/", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
                                                
require "uri"
require "net/http"
url = URI("https://api.tagembed.com/app/api/")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = "56200ef68981fb037175a9ecca66c4d0"
form_data = [['widgetId', '5613'],['count', '2'],['start', '0']]
request.set_form form_data, 'multipart/form-data'
response = https.request(request)
puts response.read_body
                                                
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
var semaphore = DispatchSemaphore (value: 0)
let parameters = [
[
"key": "widgetId",
"value": "5613",
"type": "text"
],
[
"key": "count",
"value": "2",
"type": "text"
],
[
"key": "start",
"value": "0",
"type": "text"
]] as [[String : Any]]

let boundary = "Boundary-\(UUID().uuidString)"
var body = ""
var error: Error? = nil
for param in parameters {
if param["disabled"] == nil {
let paramName = param["key"]!
body += "--\(boundary)\r\n"
body += "Content-Disposition:form-data; name=\"\(paramName)\""
if param["contentType"] != nil {
body += "\r\nContent-Type: \(param["contentType"] as! String)"
}
let paramType = param["type"] as! String
if paramType == "text" {
let paramValue = param["value"] as! String
body += "\r\n\r\n\(paramValue)\r\n"
} else {
let paramSrc = param["src"] as! String
let fileData = try NSData(contentsOfFile:paramSrc, options:[]) as Data
let fileContent = String(data: fileData, encoding: .utf8)!
body += "; filename=\"\(paramSrc)\"\r\n"
+ "Content-Type: \"content-type header\"\r\n\r\n\(fileContent)\r\n"
}
}
}
body += "--\(boundary)--\r\n";
let postData = body.data(using: .utf8)
var request = URLRequest(url: URL(string: "https://api.tagembed.com/app/api/")!,timeoutInterval: Double.infinity)
request.addValue("56200ef68981fb037175a9ecca66c4d0", forHTTPHeaderField: "Authorization")
request.addValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
request.httpMethod = "POST"
request.httpBody = postData
let task = URLSession.shared.dataTask(with: request) { data, response, error in 
guard let data = data else {
print(String(describing: error))
semaphore.signal()
return
}
print(String(data: data, encoding: .utf8)!)
semaphore.signal()
}
task.resume()
semaphore.wait()
                                                
package main
import (
  "fmt"
  "bytes"
  "mime/multipart"
  "net/http"
  "io/ioutil"
)
func main() {
  url := "https://api.tagembed.com/app/api/"
  method := "POST"
  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("widgetId", "5613")
  _ = writer.WriteField("count", "1")
  _ = writer.WriteField("start", "0")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  }
  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)
  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Authorization", "56200ef68981fb037175a9ecca66c4d0")
  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()
  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
                                                
curl --location --request POST 'https://api.tagembed.com/app/api/' \
--header 'Authorization: 56200ef68981fb037175a9ecca66c4d0' \
--form 'widgetId="5613"' \
--form 'count="1"' \
--form 'start="0"'
                                                
{
"head": {
"status": true,
"code": 200
},
"body": {
"widgetlDetail": {
"widgetName": "API Document ",
"widgetUrl": "api-document-",
"widgetProfanity": "0",
"widgetCreatedAt": "0",
"count": 2
},
"feeds": [
{
"feedName": "avengers",
"networkName": "Twitter",
"feedId": "10090",
"postId": "806",
"postContent": "RT @OuterRimsPhoto: \"...to see if we could become something more...\" #reassemble #playavengers \n\n#Avengers #Marvel #VirtualPhotography #The…",
"postScore": "pos",
"image": "",
"imageList": [],
"postLinkUrl": "1401130620261130242",
"postPin": "0",
"postHighlight": "0",
"postAuthorName": "Hero Fan",
"postUsername": "bob64262049",
"postUserPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postTags": "",
"postCreatedAt": "1622890546",
"postMediaFile": "",
"postUpdatedAt": 1622890749,
"CTAtext": "",
"CTAbackground": "",
"CTAcolor": "",
"CTAurl": "javascript:void(0);"
},
{
"feedName": "avengers",
"networkName": "Twitter",
"feedId": "10090",
"postId": "807",
"postContent": "RT @OuterRimsPhoto: \"...so when they needed us, we could fight the battles...\" #reassemble #playavengers \n\n#Avengers #Marvel #VirtualPhotog…",
"postScore": "pos",
"image": "",
"imageList": [],
"postLinkUrl": "1401130547972395010",
"postPin": "0",
"postHighlight": "0",
"postAuthorName": "Hero Fan",
"postUsername": "bob64262049",
"postUserPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postTags": "",
"postCreatedAt": "1622890529",
"postMediaFile": "",
"postUpdatedAt": 1622890749,
"CTAtext": "",
"CTAbackground": "",
"CTAcolor": "",
"CTAurl": "javascript:void(0);"
}
]
}
}
                                                

4. Min Id - Response will start from post min id

Request : POST
Field Optional Type Remark
widgetid No Number Widget id
Count Yes Number Number Of Post
minid Yes Number Min Post Id
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.tagembed.com/app/api/',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('widgetId' => '5613','count' => '2','minid' => '810'),
CURLOPT_HTTPHEADER => array(
'Authorization: 56200ef68981fb037175a9ecca66c4d0'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
                                                
var myHeaders = new Headers();
myHeaders.append("Authorization", "56200ef68981fb037175a9ecca66c4d0");
var formdata = new FormData();
formdata.append("widgetId", "5613");
formdata.append("count", "2");
formdata.append("minid", "810");
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: formdata,
redirect: 'follow'
};
fetch("https://api.tagembed.com/app/api/", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
                                                
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append('widgetId', '5613');
data.append('count', '2');
data.append('minid', '810');
var config = {
method: 'post',
url: 'https://api.tagembed.com/app/api/',
headers: { 
'Authorization': '56200ef68981fb037175a9ecca66c4d0', 
...data.getHeaders()
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
                                                
var client = new RestClient("https://api.tagembed.com/app/api/");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "56200ef68981fb037175a9ecca66c4d0");
request.AlwaysMultipartFormData = true;
request.AddParameter("widgetId", "5613");
request.AddParameter("count", "2");
request.AddParameter("minid", "810");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
                                                
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
  .addFormDataPart("widgetId","5613")
  .addFormDataPart("count","2")
  .addFormDataPart("minid","810")
  .build();
Request request = new Request.Builder()
  .url("https://api.tagembed.com/app/api/")
  .method("POST", body)
  .addHeader("Authorization", "56200ef68981fb037175a9ecca66c4d0")
  .build();
Response response = client.newCall(request).execute();
                                                
import http.client
import mimetypes
from codecs import encode
conn = http.client.HTTPSConnection("api.tagembed.com")
dataList = []
boundary = 'wL36Yn8afVp8Ag7AmP8qZ0SA4n1v9T'
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=widgetId;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("5613"))
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=count;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("2"))
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=minid;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("810"))
dataList.append(encode('--'+boundary+'--'))
dataList.append(encode(''))
body = b'\r\n'.join(dataList)
payload = body
headers = {
'Authorization': '56200ef68981fb037175a9ecca66c4d0',
'Content-type': 'multipart/form-data; boundary={}'.format(boundary)
}
conn.request("POST", "/app/api/", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
                                             
require "uri"
require "net/http"
url = URI("https://api.tagembed.com/app/api/")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = "56200ef68981fb037175a9ecca66c4d0"
form_data = [['widgetId', '5613'],['count', '2'],['minid', '810']]
request.set_form form_data, 'multipart/form-data'
response = https.request(request)
puts response.read_body
                                                
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
var semaphore = DispatchSemaphore (value: 0)
let parameters = [
[
"key": "widgetId",
"value": "5613",
"type": "text"
],
[
"key": "count",
"value": "2",
"type": "text"
],
[
"key": "minid",
"value": "810",
"type": "text"
]] as [[String : Any]]

let boundary = "Boundary-\(UUID().uuidString)"
var body = ""
var error: Error? = nil
for param in parameters {
if param["disabled"] == nil {
let paramName = param["key"]!
body += "--\(boundary)\r\n"
body += "Content-Disposition:form-data; name=\"\(paramName)\""
if param["contentType"] != nil {
body += "\r\nContent-Type: \(param["contentType"] as! String)"
}
let paramType = param["type"] as! String
if paramType == "text" {
let paramValue = param["value"] as! String
body += "\r\n\r\n\(paramValue)\r\n"
} else {
let paramSrc = param["src"] as! String
let fileData = try NSData(contentsOfFile:paramSrc, options:[]) as Data
let fileContent = String(data: fileData, encoding: .utf8)!
body += "; filename=\"\(paramSrc)\"\r\n"
+ "Content-Type: \"content-type header\"\r\n\r\n\(fileContent)\r\n"
}
}
}
body += "--\(boundary)--\r\n";
let postData = body.data(using: .utf8)
var request = URLRequest(url: URL(string: "https://api.tagembed.com/app/api/")!,timeoutInterval: Double.infinity)
request.addValue("56200ef68981fb037175a9ecca66c4d0", forHTTPHeaderField: "Authorization")
request.addValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
request.httpMethod = "POST"
request.httpBody = postData
let task = URLSession.shared.dataTask(with: request) { data, response, error in 
guard let data = data else {
print(String(describing: error))
semaphore.signal()
return
}
print(String(data: data, encoding: .utf8)!)
semaphore.signal()
}
task.resume()
semaphore.wait()
                                                
package main
import (
  "fmt"
  "bytes"
  "mime/multipart"
  "net/http"
  "io/ioutil"
)
func main() {
  url := "https://api.tagembed.com/app/api/"
  method := "POST"
  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("widgetId", "5613")
  _ = writer.WriteField("count", "1")
  _ = writer.WriteField("minid", "810")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  }
  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)
  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Authorization", "56200ef68981fb037175a9ecca66c4d0")
  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()
  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
                                                
curl --location --request POST 'https://api.tagembed.com/app/api/' \
--header 'Authorization: 56200ef68981fb037175a9ecca66c4d0' \
--form 'widgetId="5613"' \
--form 'count="1"' \
--form 'minid="810"'
                                                
{
"head": {
"status": true,
"code": 200
},
"body": {
"widgetlDetail": {
"widgetName": "API Document ",
"widgetUrl": "api-document-",
"widgetProfanity": "0",
"widgetCreatedAt": "0",
"count": 2
},
"feeds": [
{
"feedName": "avengers",
"networkName": "Twitter",
"feedId": "10090",
"postId": "806",
"postContent": "RT @OuterRimsPhoto: \"...to see if we could become something more...\" #reassemble #playavengers \n\n#Avengers #Marvel #VirtualPhotography #The…",
"postScore": "pos",
"image": "",
"imageList": [],
"postLinkUrl": "1401130620261130242",
"postPin": "0",
"postHighlight": "0",
"postAuthorName": "Hero Fan",
"postUsername": "bob64262049",
"postUserPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postTags": "",
"postCreatedAt": "1622890546",
"postMediaFile": "",
"postUpdatedAt": 1622890749,
"CTAtext": "",
"CTAbackground": "",
"CTAcolor": "",
"CTAurl": "javascript:void(0);"
},
{
"feedName": "avengers",
"networkName": "Twitter",
"feedId": "10090",
"postId": "807",
"postContent": "RT @OuterRimsPhoto: \"...so when they needed us, we could fight the battles...\" #reassemble #playavengers \n\n#Avengers #Marvel #VirtualPhotog…",
"postScore": "pos",
"image": "",
"imageList": [],
"postLinkUrl": "1401130547972395010",
"postPin": "0",
"postHighlight": "0",
"postAuthorName": "Hero Fan",
"postUsername": "bob64262049",
"postUserPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postTags": "",
"postCreatedAt": "1622890529",
"postMediaFile": "",
"postUpdatedAt": 1622890749,
"CTAtext": "",
"CTAbackground": "",
"CTAcolor": "",
"CTAurl": "javascript:void(0);"
}
]
}
}
                                                

5. Max Id - Response will start from first id to max id

Request : POST
Field Optional Type Remark
widgetid No Number Widget id
Count Yes Number Number Of Post
maxid Yes Number Max Post Id
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.tagembed.com/app/api/',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('widgetId' => '5613','count' => '2','maxid' => '850'),
CURLOPT_HTTPHEADER => array(
'Authorization: 56200ef68981fb037175a9ecca66c4d0'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
                                                
var myHeaders = new Headers();
myHeaders.append("Authorization", "56200ef68981fb037175a9ecca66c4d0");
var formdata = new FormData();
formdata.append("widgetId", "5613");
formdata.append("count", "2");
formdata.append("maxid", "850");
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: formdata,
redirect: 'follow'
};
fetch("https://api.tagembed.com/app/api/", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
                                                
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append('widgetId', '5613');
data.append('count', '2');
data.append('maxid', '850');
var config = {
method: 'post',
url: 'https://api.tagembed.com/app/api/',
headers: { 
'Authorization': '56200ef68981fb037175a9ecca66c4d0', 
...data.getHeaders()
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
                                                
var client = new RestClient("https://api.tagembed.com/app/api/");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "56200ef68981fb037175a9ecca66c4d0");
request.AlwaysMultipartFormData = true;
request.AddParameter("widgetId", "5613");
request.AddParameter("count", "2");
request.AddParameter("maxid", "850");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
                                                
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
  .addFormDataPart("widgetId","5613")
  .addFormDataPart("count","2")
  .addFormDataPart("maxid","850")
  .build();
Request request = new Request.Builder()
  .url("https://api.tagembed.com/app/api/")
  .method("POST", body)
  .addHeader("Authorization", "56200ef68981fb037175a9ecca66c4d0")
  .build();
Response response = client.newCall(request).execute();
                                                
import http.client
import mimetypes
from codecs import encode
conn = http.client.HTTPSConnection("api.tagembed.com")
dataList = []
boundary = 'wL36Yn8afVp8Ag7AmP8qZ0SA4n1v9T'
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=widgetId;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("5613"))
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=count;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("2"))
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=maxid;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("850"))
dataList.append(encode('--'+boundary+'--'))
dataList.append(encode(''))
body = b'\r\n'.join(dataList)
payload = body
headers = {
'Authorization': '56200ef68981fb037175a9ecca66c4d0',
'Content-type': 'multipart/form-data; boundary={}'.format(boundary)
}
conn.request("POST", "/app/api/", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
                                                
require "uri"
require "net/http"
url = URI("https://api.tagembed.com/app/api/")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = "56200ef68981fb037175a9ecca66c4d0"
form_data = [['widgetId', '5613'],['count', '2'],['maxid', '850']]
request.set_form form_data, 'multipart/form-data'
response = https.request(request)
puts response.read_body
                                                
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
var semaphore = DispatchSemaphore (value: 0)
let parameters = [
[
"key": "widgetId",
"value": "5613",
"type": "text"
],
[
"key": "count",
"value": "2",
"type": "text"
],
[
"key": "maxid",
"value": "850",
"type": "text"
]] as [[String : Any]]

let boundary = "Boundary-\(UUID().uuidString)"
var body = ""
var error: Error? = nil
for param in parameters {
if param["disabled"] == nil {
let paramName = param["key"]!
body += "--\(boundary)\r\n"
body += "Content-Disposition:form-data; name=\"\(paramName)\""
if param["contentType"] != nil {
body += "\r\nContent-Type: \(param["contentType"] as! String)"
}
let paramType = param["type"] as! String
if paramType == "text" {
let paramValue = param["value"] as! String
body += "\r\n\r\n\(paramValue)\r\n"
} else {
let paramSrc = param["src"] as! String
let fileData = try NSData(contentsOfFile:paramSrc, options:[]) as Data
let fileContent = String(data: fileData, encoding: .utf8)!
body += "; filename=\"\(paramSrc)\"\r\n"
+ "Content-Type: \"content-type header\"\r\n\r\n\(fileContent)\r\n"
}
}
}
body += "--\(boundary)--\r\n";
let postData = body.data(using: .utf8)
var request = URLRequest(url: URL(string: "https://api.tagembed.com/app/api/")!,timeoutInterval: Double.infinity)
request.addValue("56200ef68981fb037175a9ecca66c4d0", forHTTPHeaderField: "Authorization")
request.addValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
request.httpMethod = "POST"
request.httpBody = postData
let task = URLSession.shared.dataTask(with: request) { data, response, error in 
guard let data = data else {
print(String(describing: error))
semaphore.signal()
return
}
print(String(data: data, encoding: .utf8)!)
semaphore.signal()
}
task.resume()
semaphore.wait()
                                                
package main
import (
"fmt"
"bytes"
"mime/multipart"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.tagembed.com/app/api/"
method := "POST"
payload := &bytes.Buffer{}
writer := multipart.NewWriter(payload)
_ = writer.WriteField("widgetId", "5613")
_ = writer.WriteField("count", "1")
_ = writer.WriteField("maxid", "850")
err := writer.Close()
if err != nil {
fmt.Println(err)
return
}
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)

if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "56200ef68981fb037175a9ecca66c4d0")
req.Header.Set("Content-Type", writer.FormDataContentType())
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
                                                
curl --location --request POST 'https://api.tagembed.com/app/api/' \
--header 'Authorization: 56200ef68981fb037175a9ecca66c4d0' \
--form 'widgetId="5613"' \
--form 'count="1"' \
--form 'maxid="850"'
                                                
{
"head": {
"status": true,
"code": 200
},
"body": {
"widgetlDetail": {
"widgetName": "API Document ",
"widgetUrl": "api-document-",
"widgetProfanity": "0",
"widgetCreatedAt": "0",
"count": 2
},
"feeds": [
{
"feedName": "avengers",
"networkName": "Twitter",
"feedId": "10090",
"postId": "806",
"postContent": "RT @OuterRimsPhoto: \"...to see if we could become something more...\" #reassemble #playavengers \n\n#Avengers #Marvel #VirtualPhotography #The…",
"postScore": "pos",
"image": "",
"imageList": [],
"postLinkUrl": "1401130620261130242",
"postPin": "0",
"postHighlight": "0",
"postAuthorName": "Hero Fan",
"postUsername": "bob64262049",
"postUserPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postTags": "",
"postCreatedAt": "1622890546",
"postMediaFile": "",
"postUpdatedAt": 1622890749,
"CTAtext": "",
"CTAbackground": "",
"CTAcolor": "",
"CTAurl": "javascript:void(0);"
},
{
"feedName": "avengers",
"networkName": "Twitter",
"feedId": "10090",
"postId": "807",
"postContent": "RT @OuterRimsPhoto: \"...so when they needed us, we could fight the battles...\" #reassemble #playavengers \n\n#Avengers #Marvel #VirtualPhotog…",
"postScore": "pos",
"image": "",
"imageList": [],
"postLinkUrl": "1401130547972395010",
"postPin": "0",
"postHighlight": "0",
"postAuthorName": "Hero Fan",
"postUsername": "bob64262049",
"postUserPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postTags": "",
"postCreatedAt": "1622890529",
"postMediaFile": "",
"postUpdatedAt": 1622890749,
"CTAtext": "",
"CTAbackground": "",
"CTAcolor": "",
"CTAurl": "javascript:void(0);"
}
]
}
}
                                                

6. Posts Between Post Id’s - Response will start from given min id to max id

Request : POST
Field Optional Type Remark
widgetid No Number Widget id
Count Yes Number Number Of Post
minid Yes Number Min Post Id
maxid Yes Number Max Post Id
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.tagembed.com/app/api/',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('widgetId' => '5613','count' => '2','maxid' => '850','minid' => '810'),
CURLOPT_HTTPHEADER => array(
'Authorization: 56200ef68981fb037175a9ecca66c4d0'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
                                                
var myHeaders = new Headers();
myHeaders.append("Authorization", "56200ef68981fb037175a9ecca66c4d0");
var formdata = new FormData();
formdata.append("widgetId", "5613");
formdata.append("count", "2");
formdata.append("maxid", "850");
formdata.append("minid", "810");
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: formdata,
redirect: 'follow'
};
fetch("https://api.tagembed.com/app/api/", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
                                                
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append('widgetId', '5613');
data.append('count', '2');
data.append('maxid', '850');
data.append('minid', '810');
var config = {
method: 'post',
url: 'https://api.tagembed.com/app/api/',
headers: { 
'Authorization': '56200ef68981fb037175a9ecca66c4d0', 
...data.getHeaders()
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
                                                
var client = new RestClient("https://api.tagembed.com/app/api/");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "56200ef68981fb037175a9ecca66c4d0");
request.AlwaysMultipartFormData = true;
request.AddParameter("widgetId", "5613");
request.AddParameter("count", "2");
request.AddParameter("maxid", "850");
request.AddParameter("minid", "810");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
                                                
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("widgetId","5613")
.addFormDataPart("count","2")
.addFormDataPart("maxid","850")
.addFormDataPart("minid","810")
.build();
Request request = new Request.Builder()
.url("https://api.tagembed.com/app/api/")
.method("POST", body)
.addHeader("Authorization", "56200ef68981fb037175a9ecca66c4d0")
.build();
Response response = client.newCall(request).execute();
                                                
import http.client
import mimetypes
from codecs import encode
conn = http.client.HTTPSConnection("api.tagembed.com")
dataList = []
boundary = 'wL36Yn8afVp8Ag7AmP8qZ0SA4n1v9T'
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=widgetId;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("5613"))
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=count;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("2"))
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=maxid;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("850"))
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=minid;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("810"))
dataList.append(encode('--'+boundary+'--'))
dataList.append(encode(''))
body = b'\r\n'.join(dataList)
payload = body
headers = {
'Authorization': '56200ef68981fb037175a9ecca66c4d0',
'Content-type': 'multipart/form-data; boundary={}'.format(boundary)
}
conn.request("POST", "/app/api/", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
                                                
require "uri"
require "net/http"
url = URI("https://api.tagembed.com/app/api/")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = "56200ef68981fb037175a9ecca66c4d0"
form_data = [['widgetId', '5613'],['count', '2'],['maxid', '850'],['minid', '810']]
request.set_form form_data, 'multipart/form-data'
response = https.request(request)
puts response.read_body
                                                
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
var semaphore = DispatchSemaphore (value: 0)
let parameters = [
[
"key": "widgetId",
"value": "5613",
"type": "text"
],
[
"key": "count",
"value": "2",
"type": "text"
],
[
"key": "maxid",
"value": "850",
"type": "text"
],
[
"key": "minid",
"value": "810",
"type": "text"
]] as [[String : Any]]
let boundary = "Boundary-\(UUID().uuidString)"
var body = ""
var error: Error? = nil
for param in parameters {
if param["disabled"] == nil {
let paramName = param["key"]!
body += "--\(boundary)\r\n"
body += "Content-Disposition:form-data; name=\"\(paramName)\""
if param["contentType"] != nil {
body += "\r\nContent-Type: \(param["contentType"] as! String)"
}
let paramType = param["type"] as! String
if paramType == "text" {
let paramValue = param["value"] as! String
body += "\r\n\r\n\(paramValue)\r\n"
} else {
let paramSrc = param["src"] as! String
let fileData = try NSData(contentsOfFile:paramSrc, options:[]) as Data
let fileContent = String(data: fileData, encoding: .utf8)!
body += "; filename=\"\(paramSrc)\"\r\n"
+ "Content-Type: \"content-type header\"\r\n\r\n\(fileContent)\r\n"
}
}
}
body += "--\(boundary)--\r\n";
let postData = body.data(using: .utf8)
var request = URLRequest(url: URL(string: "https://api.tagembed.com/app/api/")!,timeoutInterval: Double.infinity)
request.addValue("56200ef68981fb037175a9ecca66c4d0", forHTTPHeaderField: "Authorization")
request.addValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
request.httpMethod = "POST"
request.httpBody = postData
let task = URLSession.shared.dataTask(with: request) { data, response, error in 
guard let data = data else {
print(String(describing: error))
semaphore.signal()
return
}
print(String(data: data, encoding: .utf8)!)
semaphore.signal()
}
task.resume()
semaphore.wait()
                                                
package main
import (
  "fmt"
  "bytes"
  "mime/multipart"
  "net/http"
  "io/ioutil"
)
func main() {
  url := "https://api.tagembed.com/app/api/"
  method := "POST"
  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("widgetId", "5613")
  _ = writer.WriteField("count", "1")
  _ = writer.WriteField("maxid", "850")
  _ = writer.WriteField("minid", "810")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  }
  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)
  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Authorization", "56200ef68981fb037175a9ecca66c4d0")
  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()
  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
                                                
curl --location --request POST 'https://api.tagembed.com/app/api/' \
--header 'Authorization: 56200ef68981fb037175a9ecca66c4d0' \
--form 'widgetId="5613"' \
--form 'count="1"' \
--form 'maxid="850"' \
--form 'minid="810"'
                                                
{
"head": {
"status": true,
"code": 200
},
"body": {
"widgetlDetail": {
"widgetName": "API Document ",
"widgetUrl": "api-document-",
"widgetProfanity": "0",
"widgetCreatedAt": "0",
"count": 2
},
"feeds": [
{
"feedName": "avengers",
"networkName": "Twitter",
"feedId": "10090",
"postId": "806",
"postContent": "RT @OuterRimsPhoto: \"...to see if we could become something more...\" #reassemble #playavengers \n\n#Avengers #Marvel #VirtualPhotography #The…",
"postScore": "pos",
"image": "",
"imageList": [],
"postLinkUrl": "1401130620261130242",
"postPin": "0",
"postHighlight": "0",
"postAuthorName": "Hero Fan",
"postUsername": "bob64262049",
"postUserPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postTags": "",
"postCreatedAt": "1622890546",
"postMediaFile": "",
"postUpdatedAt": 1622890749,
"CTAtext": "",
"CTAbackground": "",
"CTAcolor": "",
"CTAurl": "javascript:void(0);"
},
{
"feedName": "avengers",
"networkName": "Twitter",
"feedId": "10090",
"postId": "807",
"postContent": "RT @OuterRimsPhoto: \"...so when they needed us, we could fight the battles...\" #reassemble #playavengers \n\n#Avengers #Marvel #VirtualPhotog…",
"postScore": "pos",
"image": "",
"imageList": [],
"postLinkUrl": "1401130547972395010",
"postPin": "0",
"postHighlight": "0",
"postAuthorName": "Hero Fan",
"postUsername": "bob64262049",
"postUserPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postTags": "",
"postCreatedAt": "1622890529",
"postMediaFile": "",
"postUpdatedAt": 1622890749,
"CTAtext": "",
"CTAbackground": "",
"CTAcolor": "",
"CTAurl": "javascript:void(0);"
}
]
}
}
                                                

7. Filter Posts - Response will start from given min id to max id

Request : POST
Field Optional Type Remark
widgetid No Number Widget id
Count Yes Number Number Of Post
network Yes String Network Name
Filter Parameters
1 network=twitter 2 network=workplac
3 network=instagram 4 network=yelp
5 network=facebook 6 network=slack
7 network=google 8 network=yammer
9 network=pinterest 10 network=airbnb
11 network=flickr 12 network=soundcloud
13 network=youtube 14 network=giphy
15 network=vimeo 16 network=capterra
17 network=linkedIn 18 network=etsy
19 network=tumblr 20 network=rss
21 network=tiktok 22 network=vk
23 network=trustpilot
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.tagembed.com/app/api/',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('widgetId' => '5613','count' => '2','network' => 'twitter'),
CURLOPT_HTTPHEADER => array(
'Authorization: 56200ef68981fb037175a9ecca66c4d0'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
                                                
var myHeaders = new Headers();
myHeaders.append("Authorization", "56200ef68981fb037175a9ecca66c4d0");
var formdata = new FormData();
formdata.append("widgetId", "5613");
formdata.append("count", "2");
formdata.append("network", "twitter");
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: formdata,
redirect: 'follow'
};
fetch("https://api.tagembed.com/app/api/", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
                                                
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append('widgetId', '5613');
data.append('count', '2');
data.append('network', 'twitter');
var config = {
method: 'post',
url: 'https://api.tagembed.com/app/api/',
headers: { 
'Authorization': '56200ef68981fb037175a9ecca66c4d0', 
...data.getHeaders()
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
                                                
var client = new RestClient("https://api.tagembed.com/app/api/");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "56200ef68981fb037175a9ecca66c4d0");
request.AlwaysMultipartFormData = true;
request.AddParameter("widgetId", "5613");
request.AddParameter("count", "2");
request.AddParameter("network", "twitter");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
                                                
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("widgetId","5613")
.addFormDataPart("count","2")
.addFormDataPart("network","twitter")
.build();
Request request = new Request.Builder()
.url("https://api.tagembed.com/app/api/")
.method("POST", body)
.addHeader("Authorization", "56200ef68981fb037175a9ecca66c4d0")
.build();
Response response = client.newCall(request).execute();
                                                
import http.client
import mimetypes
from codecs import encode
conn = http.client.HTTPSConnection("api.tagembed.com")
dataList = []
boundary = 'wL36Yn8afVp8Ag7AmP8qZ0SA4n1v9T'
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=widgetId;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("5613"))
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=count;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("2"))
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=network;'))
dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))
dataList.append(encode("twitter"))
dataList.append(encode('--'+boundary+'--'))
dataList.append(encode(''))
body = b'\r\n'.join(dataList)
payload = body
headers = {
'Authorization': '56200ef68981fb037175a9ecca66c4d0',
'Content-type': 'multipart/form-data; boundary={}'.format(boundary)
}
conn.request("POST", "/app/api/", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
                                                
require "uri"
require "net/http"
url = URI("https://api.tagembed.com/app/api/")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = "56200ef68981fb037175a9ecca66c4d0"
form_data = [['widgetId', '5613'],['count', '2'],['network', 'twitter']]
request.set_form form_data, 'multipart/form-data'
response = https.request(request)
puts response.read_body
                                                
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
var semaphore = DispatchSemaphore (value: 0)
let parameters = [
[
"key": "widgetId",
"value": "5613",
"type": "text"
],
[
"key": "count",
"value": "2",
"type": "text"
],
[
"key": "network",
"value": "twitter",
"type": "text"
]] as [[String : Any]]
let boundary = "Boundary-\(UUID().uuidString)"
var body = ""
var error: Error? = nil
for param in parameters {
if param["disabled"] == nil {
let paramName = param["key"]!
body += "--\(boundary)\r\n"
body += "Content-Disposition:form-data; name=\"\(paramName)\""
if param["contentType"] != nil {
body += "\r\nContent-Type: \(param["contentType"] as! String)"
}
let paramType = param["type"] as! String
if paramType == "text" {
let paramValue = param["value"] as! String
body += "\r\n\r\n\(paramValue)\r\n"
} else {
let paramSrc = param["src"] as! String
let fileData = try NSData(contentsOfFile:paramSrc, options:[]) as Data
let fileContent = String(data: fileData, encoding: .utf8)!
body += "; filename=\"\(paramSrc)\"\r\n"
+ "Content-Type: \"content-type header\"\r\n\r\n\(fileContent)\r\n"
}
}
}
body += "--\(boundary)--\r\n";
let postData = body.data(using: .utf8)
var request = URLRequest(url: URL(string: "https://api.tagembed.com/app/api/")!,timeoutInterval: Double.infinity)
request.addValue("56200ef68981fb037175a9ecca66c4d0", forHTTPHeaderField: "Authorization")
request.addValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
request.httpMethod = "POST"
request.httpBody = postData
let task = URLSession.shared.dataTask(with: request) { data, response, error in 
guard let data = data else {
print(String(describing: error))
semaphore.signal()
return
}
print(String(data: data, encoding: .utf8)!)
semaphore.signal()
}
task.resume()
semaphore.wait()
                                                
package main
import (
  "fmt"
  "bytes"
  "mime/multipart"
  "net/http"
  "io/ioutil"
)
func main() {
  url := "https://api.tagembed.com/app/api/"
  method := "POST"
  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("widgetId", "5613")
  _ = writer.WriteField("count", "1")
  _ = writer.WriteField("network", "twitter")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  }
  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)
  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Authorization", "56200ef68981fb037175a9ecca66c4d0")
  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()
  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
                                                
curl --location --request POST 'https://api.tagembed.com/app/api/' \
--header 'Authorization: 56200ef68981fb037175a9ecca66c4d0' \
--form 'widgetId="5613"' \
--form 'count="1"' \
--form 'network="twitter"'
                                                
{
"head": {
"status": true,
"code": 200
},
"body": {
"widgetlDetail": {
"widgetName": "API Document ",
"widgetUrl": "api-document-",
"widgetProfanity": "0",
"widgetCreatedAt": "0",
"count": 2
},
"feeds": [
{
"feedName": "avengers",
"networkName": "Twitter",
"feedId": "10090",
"postId": "806",
"postContent": "RT @OuterRimsPhoto: \"...to see if we could become something more...\" #reassemble #playavengers \n\n#Avengers #Marvel #VirtualPhotography #The…",
"postScore": "pos",
"image": "",
"imageList": [],
"postLinkUrl": "1401130620261130242",
"postPin": "0",
"postHighlight": "0",
"postAuthorName": "Hero Fan",
"postUsername": "bob64262049",
"postUserPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postTags": "",
"postCreatedAt": "1622890546",
"postMediaFile": "",
"postUpdatedAt": 1622890749,
"CTAtext": "",
"CTAbackground": "",
"CTAcolor": "",
"CTAurl": "javascript:void(0);"
},
{
"feedName": "avengers",
"networkName": "Twitter",
"feedId": "10090",
"postId": "807",
"postContent": "RT @OuterRimsPhoto: \"...so when they needed us, we could fight the battles...\" #reassemble #playavengers \n\n#Avengers #Marvel #VirtualPhotog…",
"postScore": "pos",
"image": "",
"imageList": [],
"postLinkUrl": "1401130547972395010",
"postPin": "0",
"postHighlight": "0",
"postAuthorName": "Hero Fan",
"postUsername": "bob64262049",
"postUserPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postTags": "",
"postCreatedAt": "1622890529",
"postMediaFile": "",
"postUpdatedAt": 1622890749,
"CTAtext": "",
"CTAbackground": "",
"CTAcolor": "",
"CTAurl": "javascript:void(0);"
}
]
}
}
                                                

8. Response Format - Response will be giving according format

Request : POST
Field Optional Type Remark
widgetid No Number Widget id
Count Yes Number Number Of Post
minid Yes Number Min Post Id
response Yes String xml or json
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.tagembed.com/app/api/',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('widgetId' => '5613','count' => '2','response' => 'xml'),
CURLOPT_HTTPHEADER => array(
'Authorization: 56200ef68981fb037175a9ecca66c4d0'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
                                             
var myHeaders = new Headers();
myHeaders.append("Authorization", "56200ef68981fb037175a9ecca66c4d0");
var formdata = new FormData();
formdata.append("widgetId", "5613");
formdata.append("count", "2");
formdata.append("response", "xml");
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: formdata,
redirect: 'follow'
};
fetch("https://api.tagembed.com/app/api/", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
                                             
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append('widgetId', '5613');
data.append('count', '2');
data.append('response', 'xml');
var config = {
method: 'post',
url: 'https://api.tagembed.com/app/api/',
headers: { 
'Authorization': '56200ef68981fb037175a9ecca66c4d0', 
...data.getHeaders()
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
                                             
var client = new RestClient("https://api.tagembed.com/app/api/");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "56200ef68981fb037175a9ecca66c4d0");
request.AlwaysMultipartFormData = true;
request.AddParameter("widgetId", "5613");
request.AddParameter("count", "2");
request.AddParameter("response", "xml");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
                                             
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("widgetId","5613")
.addFormDataPart("count","2")
.addFormDataPart("response","xml")
.build();
Request request = new Request.Builder()
.url("https://api.tagembed.com/app/api/")
.method("POST", body)
.addHeader("Authorization", "56200ef68981fb037175a9ecca66c4d0")
.build();
Response response = client.newCall(request).execute();
                                             
import http.client
import mimetypes
from codecs import encode
conn = http.client.HTTPSConnection("api.tagembed.com")
dataList = []
boundary = 'wL36Yn8afVp8Ag7AmP8qZ0SA4n1v9T'
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=widgetId;'))

dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))

dataList.append(encode("5613"))
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=count;'))

dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))

dataList.append(encode("2"))
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=response;'))

dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))

dataList.append(encode("xml"))
dataList.append(encode('--'+boundary+'--'))
dataList.append(encode(''))
body = b'\r\n'.join(dataList)
payload = body
headers = {
'Authorization': '56200ef68981fb037175a9ecca66c4d0',
'Content-type': 'multipart/form-data; boundary={}'.format(boundary)
}
conn.request("POST", "/app/api/", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
                                             
require "uri"
require "net/http"
url = URI("https://api.tagembed.com/app/api/")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = "56200ef68981fb037175a9ecca66c4d0"
form_data = [['widgetId', '5613'],['count', '2'],['response', 'xml']]
request.set_form form_data, 'multipart/form-data'
response = https.request(request)
puts response.read_body
                                             
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
var semaphore = DispatchSemaphore (value: 0)
let parameters = [
[
"key": "widgetId",
"value": "5613",
"type": "text"
],
[
"key": "count",
"value": "2",
"type": "text"
],
[
"key": "response",
"value": "xml",
"type": "text"
]] as [[String : Any]]

let boundary = "Boundary-\(UUID().uuidString)"
var body = ""
var error: Error? = nil
for param in parameters {
if param["disabled"] == nil {
let paramName = param["key"]!
body += "--\(boundary)\r\n"
body += "Content-Disposition:form-data; name=\"\(paramName)\""
if param["contentType"] != nil {
body += "\r\nContent-Type: \(param["contentType"] as! String)"
}
let paramType = param["type"] as! String
if paramType == "text" {
let paramValue = param["value"] as! String
body += "\r\n\r\n\(paramValue)\r\n"
} else {
let paramSrc = param["src"] as! String
let fileData = try NSData(contentsOfFile:paramSrc, options:[]) as Data
let fileContent = String(data: fileData, encoding: .utf8)!
body += "; filename=\"\(paramSrc)\"\r\n"
+ "Content-Type: \"content-type header\"\r\n\r\n\(fileContent)\r\n"
}
}
}
body += "--\(boundary)--\r\n";
let postData = body.data(using: .utf8)
var request = URLRequest(url: URL(string: "https://api.tagembed.com/app/api/")!,timeoutInterval: Double.infinity)
request.addValue("56200ef68981fb037175a9ecca66c4d0", forHTTPHeaderField: "Authorization")
request.addValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
request.httpMethod = "POST"
request.httpBody = postData
let task = URLSession.shared.dataTask(with: request) { data, response, error in 
guard let data = data else {
print(String(describing: error))
semaphore.signal()
return
}
print(String(data: data, encoding: .utf8)!)
semaphore.signal()
}
task.resume()
semaphore.wait()
                                             
package main
import (
  "fmt"
  "bytes"
  "mime/multipart"
  "net/http"
  "io/ioutil"
)
func main() {
  url := "https://api.tagembed.com/app/api/"
  method := "POST"
  payload := &bytes.Buffer{}
  writer := multipart.NewWriter(payload)
  _ = writer.WriteField("widgetId", "5613")
  _ = writer.WriteField("count", "1")
  _ = writer.WriteField("minid", "810")
  _ = writer.WriteField("response", "xml")
  err := writer.Close()
  if err != nil {
    fmt.Println(err)
    return
  }
  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)
  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Authorization", "56200ef68981fb037175a9ecca66c4d0")
  req.Header.Set("Content-Type", writer.FormDataContentType())
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
                                             
curl --location --request POST 'https://api.tagembed.com/app/api/' \
--header 'Authorization: 56200ef68981fb037175a9ecca66c4d0' \
--form 'widgetId="5613"' \
--form 'count="1"' \
--form 'minid="810"' \
--form 'response="xml"'
                                             
{
"head": {
"status": true,
"code": 200
},
"body": {
"widgetlDetail": {
"widgetName": "API Document ",
"widgetUrl": "api-document-",
"widgetProfanity": "0",
"widgetCreatedAt": "0",
"count": 2
},
"feeds": [
{
"feedName": "avengers",
"networkName": "Twitter",
"feedId": "10090",
"postId": "806",
"postContent": "RT @OuterRimsPhoto: \"...to see if we could become something more...\" #reassemble #playavengers \n\n#Avengers #Marvel #VirtualPhotography #The…",
"postScore": "pos",
"image": "",
"imageList": [],
"postLinkUrl": "1401130620261130242",
"postPin": "0",
"postHighlight": "0",
"postAuthorName": "Hero Fan",
"postUsername": "bob64262049",
"postUserPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postTags": "",
"postCreatedAt": "1622890546",
"postMediaFile": "",
"postUpdatedAt": 1622890749,
"CTAtext": "",
"CTAbackground": "",
"CTAcolor": "",
"CTAurl": "javascript:void(0);"
},
{
"feedName": "avengers",
"networkName": "Twitter",
"feedId": "10090",
"postId": "807",
"postContent": "RT @OuterRimsPhoto: \"...so when they needed us, we could fight the battles...\" #reassemble #playavengers \n\n#Avengers #Marvel #VirtualPhotog…",
"postScore": "pos",
"image": "",
"imageList": [],
"postLinkUrl": "1401130547972395010",
"postPin": "0",
"postHighlight": "0",
"postAuthorName": "Hero Fan",
"postUsername": "bob64262049",
"postUserPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postPicture": "https://pbs.twimg.com/profile_images/1223447627930505217/_p_FtUGs_normal.jpg",
"postTags": "",
"postCreatedAt": "1622890529",
"postMediaFile": "",
"postUpdatedAt": 1622890749,
"CTAtext": "",
"CTAbackground": "",
"CTAcolor": "",
"CTAurl": "javascript:void(0);"
}
]
}
}
                                             

Response

Celebrate this festive season with our Christmas SALE!

Enjoy 30% OFF on all plans and make the most of the holidays. Use code TAG30 at checkout to unlock your savings.

close