Item API
Item APIv3.0.1
Please make sure you use the correct version of the APIs for your use case. To find out the appropriate version, go to the API Docs drop down on the menu.
- Endpoints
- 6 (4 GET, 2 POST)
- Base URL
https://developer.walmart.com/proxy/item-api-doc-app/rest- Authentication
- Not specified in spec
- Spec format
- Swagger 2.0
- API version
- 3.0.1
- Source
- github.com/DataFire/Integrations ★ 137
- Provider
- walmart.com
- Categories
- Developer Tools, Documentation
- Last updated
Use this API in Bruno:
- Download the Bruno collection above and unzip it.
- In Bruno, choose Open Collection and select the unzipped folder.
- Set the
baseUrlvariable (for examplehttps://developer.walmart.com/proxy/item-api-doc-app/rest), then send requests.
GET
Get status of an item feed
{{baseUrl}}/v2/feeds
HEADERS
WM_CONSUMER.CHANNEL.TYPE
WM_CONSUMER.ID
WM_SEC.TIMESTAMP
WM_SEC.AUTH_SIGNATURE
WM_SVC.NAME
WM_QOS.CORRELATION_ID
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/feeds");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "wm_consumer.channel.type: ");
headers = curl_slist_append(headers, "wm_consumer.id: ");
headers = curl_slist_append(headers, "wm_sec.timestamp: ");
headers = curl_slist_append(headers, "wm_sec.auth_signature: ");
headers = curl_slist_append(headers, "wm_svc.name: ");
headers = curl_slist_append(headers, "wm_qos.correlation_id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v2/feeds" {:headers {:wm_consumer.channel.type ""
:wm_consumer.id ""
:wm_sec.timestamp ""
:wm_sec.auth_signature ""
:wm_svc.name ""
:wm_qos.correlation_id ""}})
require "http/client"
url = "{{baseUrl}}/v2/feeds"
headers = HTTP::Headers{
"wm_consumer.channel.type" => ""
"wm_consumer.id" => ""
"wm_sec.timestamp" => ""
"wm_sec.auth_signature" => ""
"wm_svc.name" => ""
"wm_qos.correlation_id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v2/feeds"),
Headers =
{
{ "wm_consumer.channel.type", "" },
{ "wm_consumer.id", "" },
{ "wm_sec.timestamp", "" },
{ "wm_sec.auth_signature", "" },
{ "wm_svc.name", "" },
{ "wm_qos.correlation_id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/feeds");
var request = new RestRequest("", Method.Get);
request.AddHeader("wm_consumer.channel.type", "");
request.AddHeader("wm_consumer.id", "");
request.AddHeader("wm_sec.timestamp", "");
request.AddHeader("wm_sec.auth_signature", "");
request.AddHeader("wm_svc.name", "");
request.AddHeader("wm_qos.correlation_id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v2/feeds"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("wm_consumer.channel.type", "")
req.Header.Add("wm_consumer.id", "")
req.Header.Add("wm_sec.timestamp", "")
req.Header.Add("wm_sec.auth_signature", "")
req.Header.Add("wm_svc.name", "")
req.Header.Add("wm_qos.correlation_id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v2/feeds HTTP/1.1
Wm_consumer.channel.type:
Wm_consumer.id:
Wm_sec.timestamp:
Wm_sec.auth_signature:
Wm_svc.name:
Wm_qos.correlation_id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/feeds")
.setHeader("wm_consumer.channel.type", "")
.setHeader("wm_consumer.id", "")
.setHeader("wm_sec.timestamp", "")
.setHeader("wm_sec.auth_signature", "")
.setHeader("wm_svc.name", "")
.setHeader("wm_qos.correlation_id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v2/feeds"))
.header("wm_consumer.channel.type", "")
.header("wm_consumer.id", "")
.header("wm_sec.timestamp", "")
.header("wm_sec.auth_signature", "")
.header("wm_svc.name", "")
.header("wm_qos.correlation_id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v2/feeds")
.get()
.addHeader("wm_consumer.channel.type", "")
.addHeader("wm_consumer.id", "")
.addHeader("wm_sec.timestamp", "")
.addHeader("wm_sec.auth_signature", "")
.addHeader("wm_svc.name", "")
.addHeader("wm_qos.correlation_id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/feeds")
.header("wm_consumer.channel.type", "")
.header("wm_consumer.id", "")
.header("wm_sec.timestamp", "")
.header("wm_sec.auth_signature", "")
.header("wm_svc.name", "")
.header("wm_qos.correlation_id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v2/feeds');
xhr.setRequestHeader('wm_consumer.channel.type', '');
xhr.setRequestHeader('wm_consumer.id', '');
xhr.setRequestHeader('wm_sec.timestamp', '');
xhr.setRequestHeader('wm_sec.auth_signature', '');
xhr.setRequestHeader('wm_svc.name', '');
xhr.setRequestHeader('wm_qos.correlation_id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v2/feeds',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v2/feeds';
const options = {
method: 'GET',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v2/feeds',
method: 'GET',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v2/feeds")
.get()
.addHeader("wm_consumer.channel.type", "")
.addHeader("wm_consumer.id", "")
.addHeader("wm_sec.timestamp", "")
.addHeader("wm_sec.auth_signature", "")
.addHeader("wm_svc.name", "")
.addHeader("wm_qos.correlation_id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v2/feeds',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v2/feeds',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v2/feeds');
req.headers({
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v2/feeds',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v2/feeds';
const options = {
method: 'GET',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"wm_consumer.channel.type": @"",
@"wm_consumer.id": @"",
@"wm_sec.timestamp": @"",
@"wm_sec.auth_signature": @"",
@"wm_svc.name": @"",
@"wm_qos.correlation_id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/feeds"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v2/feeds" in
let headers = Header.add_list (Header.init ()) [
("wm_consumer.channel.type", "");
("wm_consumer.id", "");
("wm_sec.timestamp", "");
("wm_sec.auth_signature", "");
("wm_svc.name", "");
("wm_qos.correlation_id", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v2/feeds",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"wm_consumer.channel.type: ",
"wm_consumer.id: ",
"wm_qos.correlation_id: ",
"wm_sec.auth_signature: ",
"wm_sec.timestamp: ",
"wm_svc.name: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v2/feeds', [
'headers' => [
'wm_consumer.channel.type' => '',
'wm_consumer.id' => '',
'wm_qos.correlation_id' => '',
'wm_sec.auth_signature' => '',
'wm_sec.timestamp' => '',
'wm_svc.name' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v2/feeds');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'wm_consumer.channel.type' => '',
'wm_consumer.id' => '',
'wm_sec.timestamp' => '',
'wm_sec.auth_signature' => '',
'wm_svc.name' => '',
'wm_qos.correlation_id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/feeds');
$request->setRequestMethod('GET');
$request->setHeaders([
'wm_consumer.channel.type' => '',
'wm_consumer.id' => '',
'wm_sec.timestamp' => '',
'wm_sec.auth_signature' => '',
'wm_svc.name' => '',
'wm_qos.correlation_id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("wm_consumer.channel.type", "")
$headers.Add("wm_consumer.id", "")
$headers.Add("wm_sec.timestamp", "")
$headers.Add("wm_sec.auth_signature", "")
$headers.Add("wm_svc.name", "")
$headers.Add("wm_qos.correlation_id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/feeds' -Method GET -Headers $headers
$headers=@{}
$headers.Add("wm_consumer.channel.type", "")
$headers.Add("wm_consumer.id", "")
$headers.Add("wm_sec.timestamp", "")
$headers.Add("wm_sec.auth_signature", "")
$headers.Add("wm_svc.name", "")
$headers.Add("wm_qos.correlation_id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/feeds' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'wm_consumer.channel.type': "",
'wm_consumer.id': "",
'wm_sec.timestamp': "",
'wm_sec.auth_signature': "",
'wm_svc.name': "",
'wm_qos.correlation_id': ""
}
conn.request("GET", "/baseUrl/v2/feeds", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v2/feeds"
headers = {
"wm_consumer.channel.type": "",
"wm_consumer.id": "",
"wm_sec.timestamp": "",
"wm_sec.auth_signature": "",
"wm_svc.name": "",
"wm_qos.correlation_id": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v2/feeds"
response <- VERB("GET", url, add_headers('wm_consumer.channel.type' = '', 'wm_consumer.id' = '', 'wm_sec.timestamp' = '', 'wm_sec.auth_signature' = '', 'wm_svc.name' = '', 'wm_qos.correlation_id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v2/feeds")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["wm_consumer.channel.type"] = ''
request["wm_consumer.id"] = ''
request["wm_sec.timestamp"] = ''
request["wm_sec.auth_signature"] = ''
request["wm_svc.name"] = ''
request["wm_qos.correlation_id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v2/feeds') do |req|
req.headers['wm_consumer.channel.type'] = ''
req.headers['wm_consumer.id'] = ''
req.headers['wm_sec.timestamp'] = ''
req.headers['wm_sec.auth_signature'] = ''
req.headers['wm_svc.name'] = ''
req.headers['wm_qos.correlation_id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v2/feeds";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("wm_consumer.channel.type", "".parse().unwrap());
headers.insert("wm_consumer.id", "".parse().unwrap());
headers.insert("wm_sec.timestamp", "".parse().unwrap());
headers.insert("wm_sec.auth_signature", "".parse().unwrap());
headers.insert("wm_svc.name", "".parse().unwrap());
headers.insert("wm_qos.correlation_id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v2/feeds \
--header 'wm_consumer.channel.type: ' \
--header 'wm_consumer.id: ' \
--header 'wm_qos.correlation_id: ' \
--header 'wm_sec.auth_signature: ' \
--header 'wm_sec.timestamp: ' \
--header 'wm_svc.name: '
http GET {{baseUrl}}/v2/feeds \
wm_consumer.channel.type:'' \
wm_consumer.id:'' \
wm_qos.correlation_id:'' \
wm_sec.auth_signature:'' \
wm_sec.timestamp:'' \
wm_svc.name:''
wget --quiet \
--method GET \
--header 'wm_consumer.channel.type: ' \
--header 'wm_consumer.id: ' \
--header 'wm_sec.timestamp: ' \
--header 'wm_sec.auth_signature: ' \
--header 'wm_svc.name: ' \
--header 'wm_qos.correlation_id: ' \
--output-document \
- {{baseUrl}}/v2/feeds
import Foundation
let headers = [
"wm_consumer.channel.type": "",
"wm_consumer.id": "",
"wm_sec.timestamp": "",
"wm_sec.auth_signature": "",
"wm_svc.name": "",
"wm_qos.correlation_id": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/feeds")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
Get status of an item within a feed
{{baseUrl}}/v2/feeds/:feedId
HEADERS
WM_CONSUMER.CHANNEL.TYPE
WM_CONSUMER.ID
WM_SEC.TIMESTAMP
WM_SEC.AUTH_SIGNATURE
WM_SVC.NAME
WM_QOS.CORRELATION_ID
QUERY PARAMS
feedId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/feeds/:feedId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "wm_consumer.channel.type: ");
headers = curl_slist_append(headers, "wm_consumer.id: ");
headers = curl_slist_append(headers, "wm_sec.timestamp: ");
headers = curl_slist_append(headers, "wm_sec.auth_signature: ");
headers = curl_slist_append(headers, "wm_svc.name: ");
headers = curl_slist_append(headers, "wm_qos.correlation_id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v2/feeds/:feedId" {:headers {:wm_consumer.channel.type ""
:wm_consumer.id ""
:wm_sec.timestamp ""
:wm_sec.auth_signature ""
:wm_svc.name ""
:wm_qos.correlation_id ""}})
require "http/client"
url = "{{baseUrl}}/v2/feeds/:feedId"
headers = HTTP::Headers{
"wm_consumer.channel.type" => ""
"wm_consumer.id" => ""
"wm_sec.timestamp" => ""
"wm_sec.auth_signature" => ""
"wm_svc.name" => ""
"wm_qos.correlation_id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v2/feeds/:feedId"),
Headers =
{
{ "wm_consumer.channel.type", "" },
{ "wm_consumer.id", "" },
{ "wm_sec.timestamp", "" },
{ "wm_sec.auth_signature", "" },
{ "wm_svc.name", "" },
{ "wm_qos.correlation_id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/feeds/:feedId");
var request = new RestRequest("", Method.Get);
request.AddHeader("wm_consumer.channel.type", "");
request.AddHeader("wm_consumer.id", "");
request.AddHeader("wm_sec.timestamp", "");
request.AddHeader("wm_sec.auth_signature", "");
request.AddHeader("wm_svc.name", "");
request.AddHeader("wm_qos.correlation_id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v2/feeds/:feedId"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("wm_consumer.channel.type", "")
req.Header.Add("wm_consumer.id", "")
req.Header.Add("wm_sec.timestamp", "")
req.Header.Add("wm_sec.auth_signature", "")
req.Header.Add("wm_svc.name", "")
req.Header.Add("wm_qos.correlation_id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v2/feeds/:feedId HTTP/1.1
Wm_consumer.channel.type:
Wm_consumer.id:
Wm_sec.timestamp:
Wm_sec.auth_signature:
Wm_svc.name:
Wm_qos.correlation_id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/feeds/:feedId")
.setHeader("wm_consumer.channel.type", "")
.setHeader("wm_consumer.id", "")
.setHeader("wm_sec.timestamp", "")
.setHeader("wm_sec.auth_signature", "")
.setHeader("wm_svc.name", "")
.setHeader("wm_qos.correlation_id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v2/feeds/:feedId"))
.header("wm_consumer.channel.type", "")
.header("wm_consumer.id", "")
.header("wm_sec.timestamp", "")
.header("wm_sec.auth_signature", "")
.header("wm_svc.name", "")
.header("wm_qos.correlation_id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v2/feeds/:feedId")
.get()
.addHeader("wm_consumer.channel.type", "")
.addHeader("wm_consumer.id", "")
.addHeader("wm_sec.timestamp", "")
.addHeader("wm_sec.auth_signature", "")
.addHeader("wm_svc.name", "")
.addHeader("wm_qos.correlation_id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/feeds/:feedId")
.header("wm_consumer.channel.type", "")
.header("wm_consumer.id", "")
.header("wm_sec.timestamp", "")
.header("wm_sec.auth_signature", "")
.header("wm_svc.name", "")
.header("wm_qos.correlation_id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v2/feeds/:feedId');
xhr.setRequestHeader('wm_consumer.channel.type', '');
xhr.setRequestHeader('wm_consumer.id', '');
xhr.setRequestHeader('wm_sec.timestamp', '');
xhr.setRequestHeader('wm_sec.auth_signature', '');
xhr.setRequestHeader('wm_svc.name', '');
xhr.setRequestHeader('wm_qos.correlation_id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v2/feeds/:feedId',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v2/feeds/:feedId';
const options = {
method: 'GET',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v2/feeds/:feedId',
method: 'GET',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v2/feeds/:feedId")
.get()
.addHeader("wm_consumer.channel.type", "")
.addHeader("wm_consumer.id", "")
.addHeader("wm_sec.timestamp", "")
.addHeader("wm_sec.auth_signature", "")
.addHeader("wm_svc.name", "")
.addHeader("wm_qos.correlation_id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v2/feeds/:feedId',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v2/feeds/:feedId',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v2/feeds/:feedId');
req.headers({
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v2/feeds/:feedId',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v2/feeds/:feedId';
const options = {
method: 'GET',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"wm_consumer.channel.type": @"",
@"wm_consumer.id": @"",
@"wm_sec.timestamp": @"",
@"wm_sec.auth_signature": @"",
@"wm_svc.name": @"",
@"wm_qos.correlation_id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/feeds/:feedId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v2/feeds/:feedId" in
let headers = Header.add_list (Header.init ()) [
("wm_consumer.channel.type", "");
("wm_consumer.id", "");
("wm_sec.timestamp", "");
("wm_sec.auth_signature", "");
("wm_svc.name", "");
("wm_qos.correlation_id", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v2/feeds/:feedId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"wm_consumer.channel.type: ",
"wm_consumer.id: ",
"wm_qos.correlation_id: ",
"wm_sec.auth_signature: ",
"wm_sec.timestamp: ",
"wm_svc.name: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v2/feeds/:feedId', [
'headers' => [
'wm_consumer.channel.type' => '',
'wm_consumer.id' => '',
'wm_qos.correlation_id' => '',
'wm_sec.auth_signature' => '',
'wm_sec.timestamp' => '',
'wm_svc.name' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v2/feeds/:feedId');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'wm_consumer.channel.type' => '',
'wm_consumer.id' => '',
'wm_sec.timestamp' => '',
'wm_sec.auth_signature' => '',
'wm_svc.name' => '',
'wm_qos.correlation_id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/feeds/:feedId');
$request->setRequestMethod('GET');
$request->setHeaders([
'wm_consumer.channel.type' => '',
'wm_consumer.id' => '',
'wm_sec.timestamp' => '',
'wm_sec.auth_signature' => '',
'wm_svc.name' => '',
'wm_qos.correlation_id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("wm_consumer.channel.type", "")
$headers.Add("wm_consumer.id", "")
$headers.Add("wm_sec.timestamp", "")
$headers.Add("wm_sec.auth_signature", "")
$headers.Add("wm_svc.name", "")
$headers.Add("wm_qos.correlation_id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/feeds/:feedId' -Method GET -Headers $headers
$headers=@{}
$headers.Add("wm_consumer.channel.type", "")
$headers.Add("wm_consumer.id", "")
$headers.Add("wm_sec.timestamp", "")
$headers.Add("wm_sec.auth_signature", "")
$headers.Add("wm_svc.name", "")
$headers.Add("wm_qos.correlation_id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/feeds/:feedId' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'wm_consumer.channel.type': "",
'wm_consumer.id': "",
'wm_sec.timestamp': "",
'wm_sec.auth_signature': "",
'wm_svc.name': "",
'wm_qos.correlation_id': ""
}
conn.request("GET", "/baseUrl/v2/feeds/:feedId", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v2/feeds/:feedId"
headers = {
"wm_consumer.channel.type": "",
"wm_consumer.id": "",
"wm_sec.timestamp": "",
"wm_sec.auth_signature": "",
"wm_svc.name": "",
"wm_qos.correlation_id": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v2/feeds/:feedId"
response <- VERB("GET", url, add_headers('wm_consumer.channel.type' = '', 'wm_consumer.id' = '', 'wm_sec.timestamp' = '', 'wm_sec.auth_signature' = '', 'wm_svc.name' = '', 'wm_qos.correlation_id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v2/feeds/:feedId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["wm_consumer.channel.type"] = ''
request["wm_consumer.id"] = ''
request["wm_sec.timestamp"] = ''
request["wm_sec.auth_signature"] = ''
request["wm_svc.name"] = ''
request["wm_qos.correlation_id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v2/feeds/:feedId') do |req|
req.headers['wm_consumer.channel.type'] = ''
req.headers['wm_consumer.id'] = ''
req.headers['wm_sec.timestamp'] = ''
req.headers['wm_sec.auth_signature'] = ''
req.headers['wm_svc.name'] = ''
req.headers['wm_qos.correlation_id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v2/feeds/:feedId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("wm_consumer.channel.type", "".parse().unwrap());
headers.insert("wm_consumer.id", "".parse().unwrap());
headers.insert("wm_sec.timestamp", "".parse().unwrap());
headers.insert("wm_sec.auth_signature", "".parse().unwrap());
headers.insert("wm_svc.name", "".parse().unwrap());
headers.insert("wm_qos.correlation_id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v2/feeds/:feedId \
--header 'wm_consumer.channel.type: ' \
--header 'wm_consumer.id: ' \
--header 'wm_qos.correlation_id: ' \
--header 'wm_sec.auth_signature: ' \
--header 'wm_sec.timestamp: ' \
--header 'wm_svc.name: '
http GET {{baseUrl}}/v2/feeds/:feedId \
wm_consumer.channel.type:'' \
wm_consumer.id:'' \
wm_qos.correlation_id:'' \
wm_sec.auth_signature:'' \
wm_sec.timestamp:'' \
wm_svc.name:''
wget --quiet \
--method GET \
--header 'wm_consumer.channel.type: ' \
--header 'wm_consumer.id: ' \
--header 'wm_sec.timestamp: ' \
--header 'wm_sec.auth_signature: ' \
--header 'wm_svc.name: ' \
--header 'wm_qos.correlation_id: ' \
--output-document \
- {{baseUrl}}/v2/feeds/:feedId
import Foundation
let headers = [
"wm_consumer.channel.type": "",
"wm_consumer.id": "",
"wm_sec.timestamp": "",
"wm_sec.auth_signature": "",
"wm_svc.name": "",
"wm_qos.correlation_id": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/feeds/:feedId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
Upload an item feed
{{baseUrl}}/v2/feeds
HEADERS
WM_CONSUMER.CHANNEL.TYPE
WM_CONSUMER.ID
WM_SEC.TIMESTAMP
WM_SEC.AUTH_SIGNATURE
WM_SVC.NAME
WM_QOS.CORRELATION_ID
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/feeds");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "wm_consumer.channel.type: ");
headers = curl_slist_append(headers, "wm_consumer.id: ");
headers = curl_slist_append(headers, "wm_sec.timestamp: ");
headers = curl_slist_append(headers, "wm_sec.auth_signature: ");
headers = curl_slist_append(headers, "wm_svc.name: ");
headers = curl_slist_append(headers, "wm_qos.correlation_id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v2/feeds" {:headers {:wm_consumer.channel.type ""
:wm_consumer.id ""
:wm_sec.timestamp ""
:wm_sec.auth_signature ""
:wm_svc.name ""
:wm_qos.correlation_id ""}})
require "http/client"
url = "{{baseUrl}}/v2/feeds"
headers = HTTP::Headers{
"wm_consumer.channel.type" => ""
"wm_consumer.id" => ""
"wm_sec.timestamp" => ""
"wm_sec.auth_signature" => ""
"wm_svc.name" => ""
"wm_qos.correlation_id" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v2/feeds"),
Headers =
{
{ "wm_consumer.channel.type", "" },
{ "wm_consumer.id", "" },
{ "wm_sec.timestamp", "" },
{ "wm_sec.auth_signature", "" },
{ "wm_svc.name", "" },
{ "wm_qos.correlation_id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/feeds");
var request = new RestRequest("", Method.Post);
request.AddHeader("wm_consumer.channel.type", "");
request.AddHeader("wm_consumer.id", "");
request.AddHeader("wm_sec.timestamp", "");
request.AddHeader("wm_sec.auth_signature", "");
request.AddHeader("wm_svc.name", "");
request.AddHeader("wm_qos.correlation_id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v2/feeds"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("wm_consumer.channel.type", "")
req.Header.Add("wm_consumer.id", "")
req.Header.Add("wm_sec.timestamp", "")
req.Header.Add("wm_sec.auth_signature", "")
req.Header.Add("wm_svc.name", "")
req.Header.Add("wm_qos.correlation_id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v2/feeds HTTP/1.1
Wm_consumer.channel.type:
Wm_consumer.id:
Wm_sec.timestamp:
Wm_sec.auth_signature:
Wm_svc.name:
Wm_qos.correlation_id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/feeds")
.setHeader("wm_consumer.channel.type", "")
.setHeader("wm_consumer.id", "")
.setHeader("wm_sec.timestamp", "")
.setHeader("wm_sec.auth_signature", "")
.setHeader("wm_svc.name", "")
.setHeader("wm_qos.correlation_id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v2/feeds"))
.header("wm_consumer.channel.type", "")
.header("wm_consumer.id", "")
.header("wm_sec.timestamp", "")
.header("wm_sec.auth_signature", "")
.header("wm_svc.name", "")
.header("wm_qos.correlation_id", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v2/feeds")
.post(null)
.addHeader("wm_consumer.channel.type", "")
.addHeader("wm_consumer.id", "")
.addHeader("wm_sec.timestamp", "")
.addHeader("wm_sec.auth_signature", "")
.addHeader("wm_svc.name", "")
.addHeader("wm_qos.correlation_id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/feeds")
.header("wm_consumer.channel.type", "")
.header("wm_consumer.id", "")
.header("wm_sec.timestamp", "")
.header("wm_sec.auth_signature", "")
.header("wm_svc.name", "")
.header("wm_qos.correlation_id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v2/feeds');
xhr.setRequestHeader('wm_consumer.channel.type', '');
xhr.setRequestHeader('wm_consumer.id', '');
xhr.setRequestHeader('wm_sec.timestamp', '');
xhr.setRequestHeader('wm_sec.auth_signature', '');
xhr.setRequestHeader('wm_svc.name', '');
xhr.setRequestHeader('wm_qos.correlation_id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v2/feeds',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v2/feeds';
const options = {
method: 'POST',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v2/feeds',
method: 'POST',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v2/feeds")
.post(null)
.addHeader("wm_consumer.channel.type", "")
.addHeader("wm_consumer.id", "")
.addHeader("wm_sec.timestamp", "")
.addHeader("wm_sec.auth_signature", "")
.addHeader("wm_svc.name", "")
.addHeader("wm_qos.correlation_id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v2/feeds',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v2/feeds',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v2/feeds');
req.headers({
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v2/feeds',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v2/feeds';
const options = {
method: 'POST',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"wm_consumer.channel.type": @"",
@"wm_consumer.id": @"",
@"wm_sec.timestamp": @"",
@"wm_sec.auth_signature": @"",
@"wm_svc.name": @"",
@"wm_qos.correlation_id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/feeds"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v2/feeds" in
let headers = Header.add_list (Header.init ()) [
("wm_consumer.channel.type", "");
("wm_consumer.id", "");
("wm_sec.timestamp", "");
("wm_sec.auth_signature", "");
("wm_svc.name", "");
("wm_qos.correlation_id", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v2/feeds",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"wm_consumer.channel.type: ",
"wm_consumer.id: ",
"wm_qos.correlation_id: ",
"wm_sec.auth_signature: ",
"wm_sec.timestamp: ",
"wm_svc.name: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v2/feeds', [
'headers' => [
'wm_consumer.channel.type' => '',
'wm_consumer.id' => '',
'wm_qos.correlation_id' => '',
'wm_sec.auth_signature' => '',
'wm_sec.timestamp' => '',
'wm_svc.name' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v2/feeds');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'wm_consumer.channel.type' => '',
'wm_consumer.id' => '',
'wm_sec.timestamp' => '',
'wm_sec.auth_signature' => '',
'wm_svc.name' => '',
'wm_qos.correlation_id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/feeds');
$request->setRequestMethod('POST');
$request->setHeaders([
'wm_consumer.channel.type' => '',
'wm_consumer.id' => '',
'wm_sec.timestamp' => '',
'wm_sec.auth_signature' => '',
'wm_svc.name' => '',
'wm_qos.correlation_id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("wm_consumer.channel.type", "")
$headers.Add("wm_consumer.id", "")
$headers.Add("wm_sec.timestamp", "")
$headers.Add("wm_sec.auth_signature", "")
$headers.Add("wm_svc.name", "")
$headers.Add("wm_qos.correlation_id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/feeds' -Method POST -Headers $headers
$headers=@{}
$headers.Add("wm_consumer.channel.type", "")
$headers.Add("wm_consumer.id", "")
$headers.Add("wm_sec.timestamp", "")
$headers.Add("wm_sec.auth_signature", "")
$headers.Add("wm_svc.name", "")
$headers.Add("wm_qos.correlation_id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/feeds' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'wm_consumer.channel.type': "",
'wm_consumer.id': "",
'wm_sec.timestamp': "",
'wm_sec.auth_signature': "",
'wm_svc.name': "",
'wm_qos.correlation_id': ""
}
conn.request("POST", "/baseUrl/v2/feeds", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v2/feeds"
headers = {
"wm_consumer.channel.type": "",
"wm_consumer.id": "",
"wm_sec.timestamp": "",
"wm_sec.auth_signature": "",
"wm_svc.name": "",
"wm_qos.correlation_id": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v2/feeds"
response <- VERB("POST", url, add_headers('wm_consumer.channel.type' = '', 'wm_consumer.id' = '', 'wm_sec.timestamp' = '', 'wm_sec.auth_signature' = '', 'wm_svc.name' = '', 'wm_qos.correlation_id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v2/feeds")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["wm_consumer.channel.type"] = ''
request["wm_consumer.id"] = ''
request["wm_sec.timestamp"] = ''
request["wm_sec.auth_signature"] = ''
request["wm_svc.name"] = ''
request["wm_qos.correlation_id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/v2/feeds') do |req|
req.headers['wm_consumer.channel.type'] = ''
req.headers['wm_consumer.id'] = ''
req.headers['wm_sec.timestamp'] = ''
req.headers['wm_sec.auth_signature'] = ''
req.headers['wm_svc.name'] = ''
req.headers['wm_qos.correlation_id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v2/feeds";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("wm_consumer.channel.type", "".parse().unwrap());
headers.insert("wm_consumer.id", "".parse().unwrap());
headers.insert("wm_sec.timestamp", "".parse().unwrap());
headers.insert("wm_sec.auth_signature", "".parse().unwrap());
headers.insert("wm_svc.name", "".parse().unwrap());
headers.insert("wm_qos.correlation_id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v2/feeds \
--header 'wm_consumer.channel.type: ' \
--header 'wm_consumer.id: ' \
--header 'wm_qos.correlation_id: ' \
--header 'wm_sec.auth_signature: ' \
--header 'wm_sec.timestamp: ' \
--header 'wm_svc.name: '
http POST {{baseUrl}}/v2/feeds \
wm_consumer.channel.type:'' \
wm_consumer.id:'' \
wm_qos.correlation_id:'' \
wm_sec.auth_signature:'' \
wm_sec.timestamp:'' \
wm_svc.name:''
wget --quiet \
--method POST \
--header 'wm_consumer.channel.type: ' \
--header 'wm_consumer.id: ' \
--header 'wm_sec.timestamp: ' \
--header 'wm_sec.auth_signature: ' \
--header 'wm_svc.name: ' \
--header 'wm_qos.correlation_id: ' \
--output-document \
- {{baseUrl}}/v2/feeds
import Foundation
let headers = [
"wm_consumer.channel.type": "",
"wm_consumer.id": "",
"wm_sec.timestamp": "",
"wm_sec.auth_signature": "",
"wm_svc.name": "",
"wm_qos.correlation_id": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/feeds")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
Get status of an item feed (GET)
{{baseUrl}}/v3/feeds
HEADERS
WM_CONSUMER.CHANNEL.TYPE
WM_CONSUMER.ID
WM_SEC.TIMESTAMP
WM_SEC.AUTH_SIGNATURE
WM_SVC.NAME
WM_QOS.CORRELATION_ID
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/feeds");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "wm_consumer.channel.type: ");
headers = curl_slist_append(headers, "wm_consumer.id: ");
headers = curl_slist_append(headers, "wm_sec.timestamp: ");
headers = curl_slist_append(headers, "wm_sec.auth_signature: ");
headers = curl_slist_append(headers, "wm_svc.name: ");
headers = curl_slist_append(headers, "wm_qos.correlation_id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v3/feeds" {:headers {:wm_consumer.channel.type ""
:wm_consumer.id ""
:wm_sec.timestamp ""
:wm_sec.auth_signature ""
:wm_svc.name ""
:wm_qos.correlation_id ""}})
require "http/client"
url = "{{baseUrl}}/v3/feeds"
headers = HTTP::Headers{
"wm_consumer.channel.type" => ""
"wm_consumer.id" => ""
"wm_sec.timestamp" => ""
"wm_sec.auth_signature" => ""
"wm_svc.name" => ""
"wm_qos.correlation_id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v3/feeds"),
Headers =
{
{ "wm_consumer.channel.type", "" },
{ "wm_consumer.id", "" },
{ "wm_sec.timestamp", "" },
{ "wm_sec.auth_signature", "" },
{ "wm_svc.name", "" },
{ "wm_qos.correlation_id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/feeds");
var request = new RestRequest("", Method.Get);
request.AddHeader("wm_consumer.channel.type", "");
request.AddHeader("wm_consumer.id", "");
request.AddHeader("wm_sec.timestamp", "");
request.AddHeader("wm_sec.auth_signature", "");
request.AddHeader("wm_svc.name", "");
request.AddHeader("wm_qos.correlation_id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v3/feeds"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("wm_consumer.channel.type", "")
req.Header.Add("wm_consumer.id", "")
req.Header.Add("wm_sec.timestamp", "")
req.Header.Add("wm_sec.auth_signature", "")
req.Header.Add("wm_svc.name", "")
req.Header.Add("wm_qos.correlation_id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v3/feeds HTTP/1.1
Wm_consumer.channel.type:
Wm_consumer.id:
Wm_sec.timestamp:
Wm_sec.auth_signature:
Wm_svc.name:
Wm_qos.correlation_id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/feeds")
.setHeader("wm_consumer.channel.type", "")
.setHeader("wm_consumer.id", "")
.setHeader("wm_sec.timestamp", "")
.setHeader("wm_sec.auth_signature", "")
.setHeader("wm_svc.name", "")
.setHeader("wm_qos.correlation_id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v3/feeds"))
.header("wm_consumer.channel.type", "")
.header("wm_consumer.id", "")
.header("wm_sec.timestamp", "")
.header("wm_sec.auth_signature", "")
.header("wm_svc.name", "")
.header("wm_qos.correlation_id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v3/feeds")
.get()
.addHeader("wm_consumer.channel.type", "")
.addHeader("wm_consumer.id", "")
.addHeader("wm_sec.timestamp", "")
.addHeader("wm_sec.auth_signature", "")
.addHeader("wm_svc.name", "")
.addHeader("wm_qos.correlation_id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/feeds")
.header("wm_consumer.channel.type", "")
.header("wm_consumer.id", "")
.header("wm_sec.timestamp", "")
.header("wm_sec.auth_signature", "")
.header("wm_svc.name", "")
.header("wm_qos.correlation_id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v3/feeds');
xhr.setRequestHeader('wm_consumer.channel.type', '');
xhr.setRequestHeader('wm_consumer.id', '');
xhr.setRequestHeader('wm_sec.timestamp', '');
xhr.setRequestHeader('wm_sec.auth_signature', '');
xhr.setRequestHeader('wm_svc.name', '');
xhr.setRequestHeader('wm_qos.correlation_id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v3/feeds',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v3/feeds';
const options = {
method: 'GET',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v3/feeds',
method: 'GET',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v3/feeds")
.get()
.addHeader("wm_consumer.channel.type", "")
.addHeader("wm_consumer.id", "")
.addHeader("wm_sec.timestamp", "")
.addHeader("wm_sec.auth_signature", "")
.addHeader("wm_svc.name", "")
.addHeader("wm_qos.correlation_id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v3/feeds',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v3/feeds',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v3/feeds');
req.headers({
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v3/feeds',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v3/feeds';
const options = {
method: 'GET',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"wm_consumer.channel.type": @"",
@"wm_consumer.id": @"",
@"wm_sec.timestamp": @"",
@"wm_sec.auth_signature": @"",
@"wm_svc.name": @"",
@"wm_qos.correlation_id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/feeds"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v3/feeds" in
let headers = Header.add_list (Header.init ()) [
("wm_consumer.channel.type", "");
("wm_consumer.id", "");
("wm_sec.timestamp", "");
("wm_sec.auth_signature", "");
("wm_svc.name", "");
("wm_qos.correlation_id", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v3/feeds",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"wm_consumer.channel.type: ",
"wm_consumer.id: ",
"wm_qos.correlation_id: ",
"wm_sec.auth_signature: ",
"wm_sec.timestamp: ",
"wm_svc.name: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v3/feeds', [
'headers' => [
'wm_consumer.channel.type' => '',
'wm_consumer.id' => '',
'wm_qos.correlation_id' => '',
'wm_sec.auth_signature' => '',
'wm_sec.timestamp' => '',
'wm_svc.name' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v3/feeds');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'wm_consumer.channel.type' => '',
'wm_consumer.id' => '',
'wm_sec.timestamp' => '',
'wm_sec.auth_signature' => '',
'wm_svc.name' => '',
'wm_qos.correlation_id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/feeds');
$request->setRequestMethod('GET');
$request->setHeaders([
'wm_consumer.channel.type' => '',
'wm_consumer.id' => '',
'wm_sec.timestamp' => '',
'wm_sec.auth_signature' => '',
'wm_svc.name' => '',
'wm_qos.correlation_id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("wm_consumer.channel.type", "")
$headers.Add("wm_consumer.id", "")
$headers.Add("wm_sec.timestamp", "")
$headers.Add("wm_sec.auth_signature", "")
$headers.Add("wm_svc.name", "")
$headers.Add("wm_qos.correlation_id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/feeds' -Method GET -Headers $headers
$headers=@{}
$headers.Add("wm_consumer.channel.type", "")
$headers.Add("wm_consumer.id", "")
$headers.Add("wm_sec.timestamp", "")
$headers.Add("wm_sec.auth_signature", "")
$headers.Add("wm_svc.name", "")
$headers.Add("wm_qos.correlation_id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/feeds' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'wm_consumer.channel.type': "",
'wm_consumer.id': "",
'wm_sec.timestamp': "",
'wm_sec.auth_signature': "",
'wm_svc.name': "",
'wm_qos.correlation_id': ""
}
conn.request("GET", "/baseUrl/v3/feeds", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v3/feeds"
headers = {
"wm_consumer.channel.type": "",
"wm_consumer.id": "",
"wm_sec.timestamp": "",
"wm_sec.auth_signature": "",
"wm_svc.name": "",
"wm_qos.correlation_id": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v3/feeds"
response <- VERB("GET", url, add_headers('wm_consumer.channel.type' = '', 'wm_consumer.id' = '', 'wm_sec.timestamp' = '', 'wm_sec.auth_signature' = '', 'wm_svc.name' = '', 'wm_qos.correlation_id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v3/feeds")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["wm_consumer.channel.type"] = ''
request["wm_consumer.id"] = ''
request["wm_sec.timestamp"] = ''
request["wm_sec.auth_signature"] = ''
request["wm_svc.name"] = ''
request["wm_qos.correlation_id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v3/feeds') do |req|
req.headers['wm_consumer.channel.type'] = ''
req.headers['wm_consumer.id'] = ''
req.headers['wm_sec.timestamp'] = ''
req.headers['wm_sec.auth_signature'] = ''
req.headers['wm_svc.name'] = ''
req.headers['wm_qos.correlation_id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v3/feeds";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("wm_consumer.channel.type", "".parse().unwrap());
headers.insert("wm_consumer.id", "".parse().unwrap());
headers.insert("wm_sec.timestamp", "".parse().unwrap());
headers.insert("wm_sec.auth_signature", "".parse().unwrap());
headers.insert("wm_svc.name", "".parse().unwrap());
headers.insert("wm_qos.correlation_id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v3/feeds \
--header 'wm_consumer.channel.type: ' \
--header 'wm_consumer.id: ' \
--header 'wm_qos.correlation_id: ' \
--header 'wm_sec.auth_signature: ' \
--header 'wm_sec.timestamp: ' \
--header 'wm_svc.name: '
http GET {{baseUrl}}/v3/feeds \
wm_consumer.channel.type:'' \
wm_consumer.id:'' \
wm_qos.correlation_id:'' \
wm_sec.auth_signature:'' \
wm_sec.timestamp:'' \
wm_svc.name:''
wget --quiet \
--method GET \
--header 'wm_consumer.channel.type: ' \
--header 'wm_consumer.id: ' \
--header 'wm_sec.timestamp: ' \
--header 'wm_sec.auth_signature: ' \
--header 'wm_svc.name: ' \
--header 'wm_qos.correlation_id: ' \
--output-document \
- {{baseUrl}}/v3/feeds
import Foundation
let headers = [
"wm_consumer.channel.type": "",
"wm_consumer.id": "",
"wm_sec.timestamp": "",
"wm_sec.auth_signature": "",
"wm_svc.name": "",
"wm_qos.correlation_id": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/feeds")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
Get status of an item within a feed (GET)
{{baseUrl}}/v3/feeds/:feedId
HEADERS
WM_CONSUMER.CHANNEL.TYPE
WM_CONSUMER.ID
WM_SEC.TIMESTAMP
WM_SEC.AUTH_SIGNATURE
WM_SVC.NAME
WM_QOS.CORRELATION_ID
QUERY PARAMS
feedId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/feeds/:feedId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "wm_consumer.channel.type: ");
headers = curl_slist_append(headers, "wm_consumer.id: ");
headers = curl_slist_append(headers, "wm_sec.timestamp: ");
headers = curl_slist_append(headers, "wm_sec.auth_signature: ");
headers = curl_slist_append(headers, "wm_svc.name: ");
headers = curl_slist_append(headers, "wm_qos.correlation_id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v3/feeds/:feedId" {:headers {:wm_consumer.channel.type ""
:wm_consumer.id ""
:wm_sec.timestamp ""
:wm_sec.auth_signature ""
:wm_svc.name ""
:wm_qos.correlation_id ""}})
require "http/client"
url = "{{baseUrl}}/v3/feeds/:feedId"
headers = HTTP::Headers{
"wm_consumer.channel.type" => ""
"wm_consumer.id" => ""
"wm_sec.timestamp" => ""
"wm_sec.auth_signature" => ""
"wm_svc.name" => ""
"wm_qos.correlation_id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v3/feeds/:feedId"),
Headers =
{
{ "wm_consumer.channel.type", "" },
{ "wm_consumer.id", "" },
{ "wm_sec.timestamp", "" },
{ "wm_sec.auth_signature", "" },
{ "wm_svc.name", "" },
{ "wm_qos.correlation_id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/feeds/:feedId");
var request = new RestRequest("", Method.Get);
request.AddHeader("wm_consumer.channel.type", "");
request.AddHeader("wm_consumer.id", "");
request.AddHeader("wm_sec.timestamp", "");
request.AddHeader("wm_sec.auth_signature", "");
request.AddHeader("wm_svc.name", "");
request.AddHeader("wm_qos.correlation_id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v3/feeds/:feedId"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("wm_consumer.channel.type", "")
req.Header.Add("wm_consumer.id", "")
req.Header.Add("wm_sec.timestamp", "")
req.Header.Add("wm_sec.auth_signature", "")
req.Header.Add("wm_svc.name", "")
req.Header.Add("wm_qos.correlation_id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v3/feeds/:feedId HTTP/1.1
Wm_consumer.channel.type:
Wm_consumer.id:
Wm_sec.timestamp:
Wm_sec.auth_signature:
Wm_svc.name:
Wm_qos.correlation_id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/feeds/:feedId")
.setHeader("wm_consumer.channel.type", "")
.setHeader("wm_consumer.id", "")
.setHeader("wm_sec.timestamp", "")
.setHeader("wm_sec.auth_signature", "")
.setHeader("wm_svc.name", "")
.setHeader("wm_qos.correlation_id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v3/feeds/:feedId"))
.header("wm_consumer.channel.type", "")
.header("wm_consumer.id", "")
.header("wm_sec.timestamp", "")
.header("wm_sec.auth_signature", "")
.header("wm_svc.name", "")
.header("wm_qos.correlation_id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v3/feeds/:feedId")
.get()
.addHeader("wm_consumer.channel.type", "")
.addHeader("wm_consumer.id", "")
.addHeader("wm_sec.timestamp", "")
.addHeader("wm_sec.auth_signature", "")
.addHeader("wm_svc.name", "")
.addHeader("wm_qos.correlation_id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/feeds/:feedId")
.header("wm_consumer.channel.type", "")
.header("wm_consumer.id", "")
.header("wm_sec.timestamp", "")
.header("wm_sec.auth_signature", "")
.header("wm_svc.name", "")
.header("wm_qos.correlation_id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v3/feeds/:feedId');
xhr.setRequestHeader('wm_consumer.channel.type', '');
xhr.setRequestHeader('wm_consumer.id', '');
xhr.setRequestHeader('wm_sec.timestamp', '');
xhr.setRequestHeader('wm_sec.auth_signature', '');
xhr.setRequestHeader('wm_svc.name', '');
xhr.setRequestHeader('wm_qos.correlation_id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v3/feeds/:feedId',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v3/feeds/:feedId';
const options = {
method: 'GET',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v3/feeds/:feedId',
method: 'GET',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v3/feeds/:feedId")
.get()
.addHeader("wm_consumer.channel.type", "")
.addHeader("wm_consumer.id", "")
.addHeader("wm_sec.timestamp", "")
.addHeader("wm_sec.auth_signature", "")
.addHeader("wm_svc.name", "")
.addHeader("wm_qos.correlation_id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v3/feeds/:feedId',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v3/feeds/:feedId',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v3/feeds/:feedId');
req.headers({
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v3/feeds/:feedId',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v3/feeds/:feedId';
const options = {
method: 'GET',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"wm_consumer.channel.type": @"",
@"wm_consumer.id": @"",
@"wm_sec.timestamp": @"",
@"wm_sec.auth_signature": @"",
@"wm_svc.name": @"",
@"wm_qos.correlation_id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/feeds/:feedId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v3/feeds/:feedId" in
let headers = Header.add_list (Header.init ()) [
("wm_consumer.channel.type", "");
("wm_consumer.id", "");
("wm_sec.timestamp", "");
("wm_sec.auth_signature", "");
("wm_svc.name", "");
("wm_qos.correlation_id", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v3/feeds/:feedId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"wm_consumer.channel.type: ",
"wm_consumer.id: ",
"wm_qos.correlation_id: ",
"wm_sec.auth_signature: ",
"wm_sec.timestamp: ",
"wm_svc.name: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v3/feeds/:feedId', [
'headers' => [
'wm_consumer.channel.type' => '',
'wm_consumer.id' => '',
'wm_qos.correlation_id' => '',
'wm_sec.auth_signature' => '',
'wm_sec.timestamp' => '',
'wm_svc.name' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v3/feeds/:feedId');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'wm_consumer.channel.type' => '',
'wm_consumer.id' => '',
'wm_sec.timestamp' => '',
'wm_sec.auth_signature' => '',
'wm_svc.name' => '',
'wm_qos.correlation_id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/feeds/:feedId');
$request->setRequestMethod('GET');
$request->setHeaders([
'wm_consumer.channel.type' => '',
'wm_consumer.id' => '',
'wm_sec.timestamp' => '',
'wm_sec.auth_signature' => '',
'wm_svc.name' => '',
'wm_qos.correlation_id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("wm_consumer.channel.type", "")
$headers.Add("wm_consumer.id", "")
$headers.Add("wm_sec.timestamp", "")
$headers.Add("wm_sec.auth_signature", "")
$headers.Add("wm_svc.name", "")
$headers.Add("wm_qos.correlation_id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/feeds/:feedId' -Method GET -Headers $headers
$headers=@{}
$headers.Add("wm_consumer.channel.type", "")
$headers.Add("wm_consumer.id", "")
$headers.Add("wm_sec.timestamp", "")
$headers.Add("wm_sec.auth_signature", "")
$headers.Add("wm_svc.name", "")
$headers.Add("wm_qos.correlation_id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/feeds/:feedId' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'wm_consumer.channel.type': "",
'wm_consumer.id': "",
'wm_sec.timestamp': "",
'wm_sec.auth_signature': "",
'wm_svc.name': "",
'wm_qos.correlation_id': ""
}
conn.request("GET", "/baseUrl/v3/feeds/:feedId", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v3/feeds/:feedId"
headers = {
"wm_consumer.channel.type": "",
"wm_consumer.id": "",
"wm_sec.timestamp": "",
"wm_sec.auth_signature": "",
"wm_svc.name": "",
"wm_qos.correlation_id": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v3/feeds/:feedId"
response <- VERB("GET", url, add_headers('wm_consumer.channel.type' = '', 'wm_consumer.id' = '', 'wm_sec.timestamp' = '', 'wm_sec.auth_signature' = '', 'wm_svc.name' = '', 'wm_qos.correlation_id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v3/feeds/:feedId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["wm_consumer.channel.type"] = ''
request["wm_consumer.id"] = ''
request["wm_sec.timestamp"] = ''
request["wm_sec.auth_signature"] = ''
request["wm_svc.name"] = ''
request["wm_qos.correlation_id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v3/feeds/:feedId') do |req|
req.headers['wm_consumer.channel.type'] = ''
req.headers['wm_consumer.id'] = ''
req.headers['wm_sec.timestamp'] = ''
req.headers['wm_sec.auth_signature'] = ''
req.headers['wm_svc.name'] = ''
req.headers['wm_qos.correlation_id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v3/feeds/:feedId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("wm_consumer.channel.type", "".parse().unwrap());
headers.insert("wm_consumer.id", "".parse().unwrap());
headers.insert("wm_sec.timestamp", "".parse().unwrap());
headers.insert("wm_sec.auth_signature", "".parse().unwrap());
headers.insert("wm_svc.name", "".parse().unwrap());
headers.insert("wm_qos.correlation_id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v3/feeds/:feedId \
--header 'wm_consumer.channel.type: ' \
--header 'wm_consumer.id: ' \
--header 'wm_qos.correlation_id: ' \
--header 'wm_sec.auth_signature: ' \
--header 'wm_sec.timestamp: ' \
--header 'wm_svc.name: '
http GET {{baseUrl}}/v3/feeds/:feedId \
wm_consumer.channel.type:'' \
wm_consumer.id:'' \
wm_qos.correlation_id:'' \
wm_sec.auth_signature:'' \
wm_sec.timestamp:'' \
wm_svc.name:''
wget --quiet \
--method GET \
--header 'wm_consumer.channel.type: ' \
--header 'wm_consumer.id: ' \
--header 'wm_sec.timestamp: ' \
--header 'wm_sec.auth_signature: ' \
--header 'wm_svc.name: ' \
--header 'wm_qos.correlation_id: ' \
--output-document \
- {{baseUrl}}/v3/feeds/:feedId
import Foundation
let headers = [
"wm_consumer.channel.type": "",
"wm_consumer.id": "",
"wm_sec.timestamp": "",
"wm_sec.auth_signature": "",
"wm_svc.name": "",
"wm_qos.correlation_id": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/feeds/:feedId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
Upload an item feed (POST)
{{baseUrl}}/v3/feeds
HEADERS
WM_CONSUMER.CHANNEL.TYPE
WM_CONSUMER.ID
WM_SEC.TIMESTAMP
WM_SEC.AUTH_SIGNATURE
WM_SVC.NAME
WM_QOS.CORRELATION_ID
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/feeds");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "wm_consumer.channel.type: ");
headers = curl_slist_append(headers, "wm_consumer.id: ");
headers = curl_slist_append(headers, "wm_sec.timestamp: ");
headers = curl_slist_append(headers, "wm_sec.auth_signature: ");
headers = curl_slist_append(headers, "wm_svc.name: ");
headers = curl_slist_append(headers, "wm_qos.correlation_id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v3/feeds" {:headers {:wm_consumer.channel.type ""
:wm_consumer.id ""
:wm_sec.timestamp ""
:wm_sec.auth_signature ""
:wm_svc.name ""
:wm_qos.correlation_id ""}})
require "http/client"
url = "{{baseUrl}}/v3/feeds"
headers = HTTP::Headers{
"wm_consumer.channel.type" => ""
"wm_consumer.id" => ""
"wm_sec.timestamp" => ""
"wm_sec.auth_signature" => ""
"wm_svc.name" => ""
"wm_qos.correlation_id" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v3/feeds"),
Headers =
{
{ "wm_consumer.channel.type", "" },
{ "wm_consumer.id", "" },
{ "wm_sec.timestamp", "" },
{ "wm_sec.auth_signature", "" },
{ "wm_svc.name", "" },
{ "wm_qos.correlation_id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/feeds");
var request = new RestRequest("", Method.Post);
request.AddHeader("wm_consumer.channel.type", "");
request.AddHeader("wm_consumer.id", "");
request.AddHeader("wm_sec.timestamp", "");
request.AddHeader("wm_sec.auth_signature", "");
request.AddHeader("wm_svc.name", "");
request.AddHeader("wm_qos.correlation_id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v3/feeds"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("wm_consumer.channel.type", "")
req.Header.Add("wm_consumer.id", "")
req.Header.Add("wm_sec.timestamp", "")
req.Header.Add("wm_sec.auth_signature", "")
req.Header.Add("wm_svc.name", "")
req.Header.Add("wm_qos.correlation_id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v3/feeds HTTP/1.1
Wm_consumer.channel.type:
Wm_consumer.id:
Wm_sec.timestamp:
Wm_sec.auth_signature:
Wm_svc.name:
Wm_qos.correlation_id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v3/feeds")
.setHeader("wm_consumer.channel.type", "")
.setHeader("wm_consumer.id", "")
.setHeader("wm_sec.timestamp", "")
.setHeader("wm_sec.auth_signature", "")
.setHeader("wm_svc.name", "")
.setHeader("wm_qos.correlation_id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v3/feeds"))
.header("wm_consumer.channel.type", "")
.header("wm_consumer.id", "")
.header("wm_sec.timestamp", "")
.header("wm_sec.auth_signature", "")
.header("wm_svc.name", "")
.header("wm_qos.correlation_id", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v3/feeds")
.post(null)
.addHeader("wm_consumer.channel.type", "")
.addHeader("wm_consumer.id", "")
.addHeader("wm_sec.timestamp", "")
.addHeader("wm_sec.auth_signature", "")
.addHeader("wm_svc.name", "")
.addHeader("wm_qos.correlation_id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/feeds")
.header("wm_consumer.channel.type", "")
.header("wm_consumer.id", "")
.header("wm_sec.timestamp", "")
.header("wm_sec.auth_signature", "")
.header("wm_svc.name", "")
.header("wm_qos.correlation_id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v3/feeds');
xhr.setRequestHeader('wm_consumer.channel.type', '');
xhr.setRequestHeader('wm_consumer.id', '');
xhr.setRequestHeader('wm_sec.timestamp', '');
xhr.setRequestHeader('wm_sec.auth_signature', '');
xhr.setRequestHeader('wm_svc.name', '');
xhr.setRequestHeader('wm_qos.correlation_id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v3/feeds',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v3/feeds';
const options = {
method: 'POST',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v3/feeds',
method: 'POST',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v3/feeds")
.post(null)
.addHeader("wm_consumer.channel.type", "")
.addHeader("wm_consumer.id", "")
.addHeader("wm_sec.timestamp", "")
.addHeader("wm_sec.auth_signature", "")
.addHeader("wm_svc.name", "")
.addHeader("wm_qos.correlation_id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v3/feeds',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v3/feeds',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v3/feeds');
req.headers({
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v3/feeds',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v3/feeds';
const options = {
method: 'POST',
headers: {
'wm_consumer.channel.type': '',
'wm_consumer.id': '',
'wm_sec.timestamp': '',
'wm_sec.auth_signature': '',
'wm_svc.name': '',
'wm_qos.correlation_id': ''
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"wm_consumer.channel.type": @"",
@"wm_consumer.id": @"",
@"wm_sec.timestamp": @"",
@"wm_sec.auth_signature": @"",
@"wm_svc.name": @"",
@"wm_qos.correlation_id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/feeds"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v3/feeds" in
let headers = Header.add_list (Header.init ()) [
("wm_consumer.channel.type", "");
("wm_consumer.id", "");
("wm_sec.timestamp", "");
("wm_sec.auth_signature", "");
("wm_svc.name", "");
("wm_qos.correlation_id", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v3/feeds",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"wm_consumer.channel.type: ",
"wm_consumer.id: ",
"wm_qos.correlation_id: ",
"wm_sec.auth_signature: ",
"wm_sec.timestamp: ",
"wm_svc.name: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v3/feeds', [
'headers' => [
'wm_consumer.channel.type' => '',
'wm_consumer.id' => '',
'wm_qos.correlation_id' => '',
'wm_sec.auth_signature' => '',
'wm_sec.timestamp' => '',
'wm_svc.name' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v3/feeds');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'wm_consumer.channel.type' => '',
'wm_consumer.id' => '',
'wm_sec.timestamp' => '',
'wm_sec.auth_signature' => '',
'wm_svc.name' => '',
'wm_qos.correlation_id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/feeds');
$request->setRequestMethod('POST');
$request->setHeaders([
'wm_consumer.channel.type' => '',
'wm_consumer.id' => '',
'wm_sec.timestamp' => '',
'wm_sec.auth_signature' => '',
'wm_svc.name' => '',
'wm_qos.correlation_id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("wm_consumer.channel.type", "")
$headers.Add("wm_consumer.id", "")
$headers.Add("wm_sec.timestamp", "")
$headers.Add("wm_sec.auth_signature", "")
$headers.Add("wm_svc.name", "")
$headers.Add("wm_qos.correlation_id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/feeds' -Method POST -Headers $headers
$headers=@{}
$headers.Add("wm_consumer.channel.type", "")
$headers.Add("wm_consumer.id", "")
$headers.Add("wm_sec.timestamp", "")
$headers.Add("wm_sec.auth_signature", "")
$headers.Add("wm_svc.name", "")
$headers.Add("wm_qos.correlation_id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/feeds' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'wm_consumer.channel.type': "",
'wm_consumer.id': "",
'wm_sec.timestamp': "",
'wm_sec.auth_signature': "",
'wm_svc.name': "",
'wm_qos.correlation_id': ""
}
conn.request("POST", "/baseUrl/v3/feeds", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v3/feeds"
headers = {
"wm_consumer.channel.type": "",
"wm_consumer.id": "",
"wm_sec.timestamp": "",
"wm_sec.auth_signature": "",
"wm_svc.name": "",
"wm_qos.correlation_id": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v3/feeds"
response <- VERB("POST", url, add_headers('wm_consumer.channel.type' = '', 'wm_consumer.id' = '', 'wm_sec.timestamp' = '', 'wm_sec.auth_signature' = '', 'wm_svc.name' = '', 'wm_qos.correlation_id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v3/feeds")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["wm_consumer.channel.type"] = ''
request["wm_consumer.id"] = ''
request["wm_sec.timestamp"] = ''
request["wm_sec.auth_signature"] = ''
request["wm_svc.name"] = ''
request["wm_qos.correlation_id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/v3/feeds') do |req|
req.headers['wm_consumer.channel.type'] = ''
req.headers['wm_consumer.id'] = ''
req.headers['wm_sec.timestamp'] = ''
req.headers['wm_sec.auth_signature'] = ''
req.headers['wm_svc.name'] = ''
req.headers['wm_qos.correlation_id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v3/feeds";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("wm_consumer.channel.type", "".parse().unwrap());
headers.insert("wm_consumer.id", "".parse().unwrap());
headers.insert("wm_sec.timestamp", "".parse().unwrap());
headers.insert("wm_sec.auth_signature", "".parse().unwrap());
headers.insert("wm_svc.name", "".parse().unwrap());
headers.insert("wm_qos.correlation_id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v3/feeds \
--header 'wm_consumer.channel.type: ' \
--header 'wm_consumer.id: ' \
--header 'wm_qos.correlation_id: ' \
--header 'wm_sec.auth_signature: ' \
--header 'wm_sec.timestamp: ' \
--header 'wm_svc.name: '
http POST {{baseUrl}}/v3/feeds \
wm_consumer.channel.type:'' \
wm_consumer.id:'' \
wm_qos.correlation_id:'' \
wm_sec.auth_signature:'' \
wm_sec.timestamp:'' \
wm_svc.name:''
wget --quiet \
--method POST \
--header 'wm_consumer.channel.type: ' \
--header 'wm_consumer.id: ' \
--header 'wm_sec.timestamp: ' \
--header 'wm_sec.auth_signature: ' \
--header 'wm_svc.name: ' \
--header 'wm_qos.correlation_id: ' \
--output-document \
- {{baseUrl}}/v3/feeds
import Foundation
let headers = [
"wm_consumer.channel.type": "",
"wm_consumer.id": "",
"wm_sec.timestamp": "",
"wm_sec.auth_signature": "",
"wm_svc.name": "",
"wm_qos.correlation_id": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/feeds")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()