Connections Status API
This method provides information about the your updated ad data collection status for all your connections.
Libring RESTful API has complementary methods to Libring Connections Status API:
Request
https://api.libring.com/v2/connections/status
Method
GET
Required Authorization
| Name | Example |
|---|---|
| token | ‘Authorization’=>”Token TOKEN_CODE” |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
| verbose | boolean | Set verbose true to show more information like reprocessing status by day. |
Response
| Field | Type | Description |
|---|---|---|
| Request Time | DateTime | DateTime sent by response call. |
| Data | Hash | All connections and their information. |
Request Example
https://api.libring.com/v2/connections/status?verbose=true
Response Examples
Responses will be in JSON format.
{
"data": {
"request_time": "2016-04-10 20:30:10 -0500",
"data": [
{
"(1) AdMob": {
"last_collection": "2016-04-16 20:30:10 CDT",
"status": "OK",
"reprocessing_status": {
"2016-04-10": "OK",
"2016-04-11": "OK",
"2016-04-12": "OK",
"2016-04-13": "OK"
}
}
},
{
"(2) AdColony": {
"last_collection": "2016-04-16 20:30:10 CDT",
"status": "Waiting for reporting to be released.",
"reprocessing_status": {
"2016-04-10": "OK",
"2016-04-11": "OK",
"2016-04-12": "OK",
"2016-04-13": "Waiting for reporting to be released."
}
}
}
]
}
}
Response
| HTTP Status | |
|---|---|
| 200 OK | Positive response, all fine |
| 400 Bad Request | Error – If required parameter not provide |
| 401 Unauthorized | Error – When the api_token is not valid |
Examples
require “net/https” require “uri” uri = URI.parse(‘https://api.libring.com/v2/connections/status?verbose=true’) https = Net::HTTP.new(uri.host, uri.port) https.use_ssl = true req = Net::HTTP::Get.new(uri.request_uri, initheader = {‘Content-Type’ =>’application/json’, ‘Authorization’ => ‘Token 1043tL2eZvKYlo2CSU3Tbnci’}) resp = https.request(req)
$access_token = “VqQGAfdeTNAKYgwOFiaoqGkgCrrI”; $headers = array(‘Authorization: Token ‘ . $access_token); $ch_subs = curl_init(); curl_setopt($ch_subs, CURLOPT_URL, ‘https://api.libring.com/v2/connections/status?verbose=true’); curl_setopt($ch_subs, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch_subs, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch_subs, CURLOPT_POST, 0); curl_setopt($ch_subs, CURLOPT_HTTPHEADER, $headers); echo curl_exec($ch_subs); curl_close($ch_subs);
import requests r = requests.get(‘https://api.libring.com/v2/connections/status?verbose=true’, headers={‘Authorization’:’Token feasvJ3gLU5cfx7UuzzfEVmhmvRfC’, ‘content-type’: ‘application/json’}); print r.text
Connections Status API
This method provides information about the your updated ad data collection status for all your connections.
Libring RESTful API has complementary methods to Libring Connections Status API:
Request
https://api.libring.com/v2/connections/status
Method
GET
Required Authorization
| Name | Example |
|---|---|
| token | ‘Authorization’=>”Token TOKEN_CODE” |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
| verbose | boolean | Set verbose true to show more information like reprocessing status by day. |
Response
| Field | Type | Description |
|---|---|---|
| Request Time | DateTime | DateTime sent by response call. |
| Data | Hash | All connections and their information. |
Request Example
https://api.libring.com/v2/connections/status?verbose=true
Response Examples
Responses will be in JSON format.
{
"data": {
"request_time": "2016-04-10 20:30:10 -0500",
"data": [
{
"(1) AdMob": {
"last_collection": "2016-04-16 20:30:10 CDT",
"status": "OK",
"reprocessing_status": {
"2016-04-10": "OK",
"2016-04-11": "OK",
"2016-04-12": "OK",
"2016-04-13": "OK"
}
}
},
{
"(2) AdColony": {
"last_collection": "2016-04-16 20:30:10 CDT",
"status": "Waiting for reporting to be released.",
"reprocessing_status": {
"2016-04-10": "OK",
"2016-04-11": "OK",
"2016-04-12": "OK",
"2016-04-13": "Waiting for reporting to be released."
}
}
}
]
}
}
Response
| HTTP Status | |
|---|---|
| 200 OK | Positive response, all fine |
| 400 Bad Request | Error – If required parameter not provide |
| 401 Unauthorized | Error – When the api_token is not valid |
Examples
require “net/https” require “uri” uri = URI.parse(‘https://api.libring.com/v2/connections/status?verbose=true’) https = Net::HTTP.new(uri.host, uri.port) https.use_ssl = true req = Net::HTTP::Get.new(uri.request_uri, initheader = {‘Content-Type’ =>’application/json’, ‘Authorization’ => ‘Token 1043tL2eZvKYlo2CSU3Tbnci’}) resp = https.request(req)
$access_token = “VqQGAfdeTNAKYgwOFiaoqGkgCrrI”; $headers = array(‘Authorization: Token ‘ . $access_token); $ch_subs = curl_init(); curl_setopt($ch_subs, CURLOPT_URL, ‘https://api.libring.com/v2/connections/status?verbose=true’); curl_setopt($ch_subs, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch_subs, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch_subs, CURLOPT_POST, 0); curl_setopt($ch_subs, CURLOPT_HTTPHEADER, $headers); echo curl_exec($ch_subs); curl_close($ch_subs);
import requests r = requests.get(‘https://api.libring.com/v2/connections/status?verbose=true’, headers={‘Authorization’:’Token feasvJ3gLU5cfx7UuzzfEVmhmvRfC’, ‘content-type’: ‘application/json’}); print r.text
Contact Us
210 Broadway #201
Cambridge, MA 02139
+1 617 858 6051
contact@libring.com