MarketplaceOrdering.Agreements
GET
Operations_List
{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations")
require "http/client"
url = "{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/providers/Microsoft.MarketplaceOrdering/operations HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations"))
.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}}/providers/Microsoft.MarketplaceOrdering/operations")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations")
.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}}/providers/Microsoft.MarketplaceOrdering/operations');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations';
const options = {method: 'GET'};
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}}/providers/Microsoft.MarketplaceOrdering/operations',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/providers/Microsoft.MarketplaceOrdering/operations',
headers: {}
};
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}}/providers/Microsoft.MarketplaceOrdering/operations'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations');
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}}/providers/Microsoft.MarketplaceOrdering/operations'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
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}}/providers/Microsoft.MarketplaceOrdering/operations" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations');
echo $response->getBody();
setUrl('{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/providers/Microsoft.MarketplaceOrdering/operations")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/providers/Microsoft.MarketplaceOrdering/operations') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations
http GET {{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/providers/Microsoft.MarketplaceOrdering/operations")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
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
MarketplaceAgreements_Cancel
{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel")
require "http/client"
url = "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel"
response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel"))
.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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel")
.post(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel")
.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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel';
const options = {method: 'POST'};
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel',
method: 'POST',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel")
.post(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel',
headers: {}
};
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel');
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel" in
Client.call `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel');
echo $response->getBody();
setUrl('{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel');
$request->setMethod(HTTP_METH_POST);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel' -Method POST
$response = Invoke-RestMethod -Uri '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel' -Method POST
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("POST", "/baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel"
response = requests.post(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel"
response <- VERB("POST", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel";
let client = reqwest::Client::new();
let response = client.post(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel
http POST {{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel
wget --quiet \
--method POST \
--output-document \
- {{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/cancel")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
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()
PUT
MarketplaceAgreements_Create
{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current")
require "http/client"
url = "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current"
response = HTTP::Client.put url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current");
var request = new RestRequest("", Method.Put);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current"
req, _ := http.NewRequest("PUT", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current"))
.method("PUT", 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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current")
.put(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current")
.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('PUT', '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current';
const options = {method: 'PUT'};
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current',
method: 'PUT',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current")
.put(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current',
headers: {}
};
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: 'PUT',
url: '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current';
const options = {method: 'PUT'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current" in
Client.call `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current');
echo $response->getBody();
setUrl('{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current');
$request->setMethod(HTTP_METH_PUT);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current' -Method PUT
$response = Invoke-RestMethod -Uri '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current' -Method PUT
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("PUT", "/baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current"
response = requests.put(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current"
response <- VERB("PUT", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current";
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current
http PUT {{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current
wget --quiet \
--method PUT \
--output-document \
- {{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
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
MarketplaceAgreements_Get
{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current")
require "http/client"
url = "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current"))
.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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current")
.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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current';
const options = {method: 'GET'};
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current',
headers: {}
};
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current');
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current');
echo $response->getBody();
setUrl('{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current
http GET {{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/offerTypes/:offerType/publishers/:publisherId/offers/:offerId/plans/:planId/agreements/current")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
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
MarketplaceAgreements_GetAgreement
{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId")
require "http/client"
url = "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId"))
.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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId")
.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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId';
const options = {method: 'GET'};
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId',
headers: {}
};
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId');
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId');
echo $response->getBody();
setUrl('{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId
http GET {{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
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
MarketplaceAgreements_List
{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements")
require "http/client"
url = "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements"))
.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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements")
.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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements';
const options = {method: 'GET'};
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements',
headers: {}
};
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements');
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements');
echo $response->getBody();
setUrl('{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements
http GET {{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
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
MarketplaceAgreements_Sign
{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign")
require "http/client"
url = "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign"
response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign"))
.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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign")
.post(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign")
.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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign';
const options = {method: 'POST'};
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign',
method: 'POST',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign")
.post(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign',
headers: {}
};
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign');
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
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}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign" in
Client.call `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign');
echo $response->getBody();
setUrl('{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign');
$request->setMethod(HTTP_METH_POST);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign' -Method POST
$response = Invoke-RestMethod -Uri '{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign' -Method POST
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("POST", "/baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign"
response = requests.post(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign"
response <- VERB("POST", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign";
let client = reqwest::Client::new();
let response = client.post(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign
http POST {{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign
wget --quiet \
--method POST \
--output-document \
- {{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/subscriptions/:subscriptionId/providers/Microsoft.MarketplaceOrdering/agreements/:publisherId/offers/:offerId/plans/:planId/sign")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
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()