Firebase Management API
GET
firebase.availableProjects.list
{{baseUrl}}/v1beta1/availableProjects
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/availableProjects");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1beta1/availableProjects")
require "http/client"
url = "{{baseUrl}}/v1beta1/availableProjects"
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}}/v1beta1/availableProjects"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/availableProjects");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/availableProjects"
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/v1beta1/availableProjects HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1beta1/availableProjects")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/availableProjects"))
.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}}/v1beta1/availableProjects")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/availableProjects")
.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}}/v1beta1/availableProjects');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1beta1/availableProjects'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/availableProjects';
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}}/v1beta1/availableProjects',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/availableProjects")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/availableProjects',
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}}/v1beta1/availableProjects'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1beta1/availableProjects');
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}}/v1beta1/availableProjects'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/availableProjects';
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}}/v1beta1/availableProjects"]
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}}/v1beta1/availableProjects" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/availableProjects",
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}}/v1beta1/availableProjects');
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/availableProjects');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1beta1/availableProjects');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/availableProjects' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/availableProjects' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1beta1/availableProjects")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/availableProjects"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/availableProjects"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/availableProjects")
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/v1beta1/availableProjects') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/availableProjects";
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}}/v1beta1/availableProjects
http GET {{baseUrl}}/v1beta1/availableProjects
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1beta1/availableProjects
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/availableProjects")! 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
firebase.projects.addFirebase
{{baseUrl}}/v1beta1/:project:addFirebase
QUERY PARAMS
project
BODY json
{
"locationId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:project:addFirebase");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"locationId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1beta1/:project:addFirebase" {:content-type :json
:form-params {:locationId ""}})
require "http/client"
url = "{{baseUrl}}/v1beta1/:project:addFirebase"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"locationId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1beta1/:project:addFirebase"),
Content = new StringContent("{\n \"locationId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:project:addFirebase");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"locationId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:project:addFirebase"
payload := strings.NewReader("{\n \"locationId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1beta1/:project:addFirebase HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 22
{
"locationId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:project:addFirebase")
.setHeader("content-type", "application/json")
.setBody("{\n \"locationId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:project:addFirebase"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"locationId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"locationId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1beta1/:project:addFirebase")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:project:addFirebase")
.header("content-type", "application/json")
.body("{\n \"locationId\": \"\"\n}")
.asString();
const data = JSON.stringify({
locationId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1beta1/:project:addFirebase');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:project:addFirebase',
headers: {'content-type': 'application/json'},
data: {locationId: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:project:addFirebase';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"locationId":""}'
};
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}}/v1beta1/:project:addFirebase',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "locationId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"locationId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:project:addFirebase")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:project:addFirebase',
headers: {
'content-type': 'application/json'
}
};
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.write(JSON.stringify({locationId: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:project:addFirebase',
headers: {'content-type': 'application/json'},
body: {locationId: ''},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1beta1/:project:addFirebase');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
locationId: ''
});
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}}/v1beta1/:project:addFirebase',
headers: {'content-type': 'application/json'},
data: {locationId: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:project:addFirebase';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"locationId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"locationId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:project:addFirebase"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
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}}/v1beta1/:project:addFirebase" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"locationId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:project:addFirebase",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'locationId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1beta1/:project:addFirebase', [
'body' => '{
"locationId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:project:addFirebase');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'locationId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'locationId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:project:addFirebase');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:project:addFirebase' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"locationId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:project:addFirebase' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"locationId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"locationId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1beta1/:project:addFirebase", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:project:addFirebase"
payload = { "locationId": "" }
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:project:addFirebase"
payload <- "{\n \"locationId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:project:addFirebase")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"locationId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1beta1/:project:addFirebase') do |req|
req.body = "{\n \"locationId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:project:addFirebase";
let payload = json!({"locationId": ""});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1beta1/:project:addFirebase \
--header 'content-type: application/json' \
--data '{
"locationId": ""
}'
echo '{
"locationId": ""
}' | \
http POST {{baseUrl}}/v1beta1/:project:addFirebase \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "locationId": ""\n}' \
--output-document \
- {{baseUrl}}/v1beta1/:project:addFirebase
import Foundation
let headers = ["content-type": "application/json"]
let parameters = ["locationId": ""] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:project:addFirebase")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
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
firebase.projects.addGoogleAnalytics
{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics
QUERY PARAMS
parent
BODY json
{
"analyticsAccountId": "",
"analyticsPropertyId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"analyticsAccountId\": \"\",\n \"analyticsPropertyId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics" {:content-type :json
:form-params {:analyticsAccountId ""
:analyticsPropertyId ""}})
require "http/client"
url = "{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"analyticsAccountId\": \"\",\n \"analyticsPropertyId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics"),
Content = new StringContent("{\n \"analyticsAccountId\": \"\",\n \"analyticsPropertyId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"analyticsAccountId\": \"\",\n \"analyticsPropertyId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics"
payload := strings.NewReader("{\n \"analyticsAccountId\": \"\",\n \"analyticsPropertyId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1beta1/:parent:addGoogleAnalytics HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 59
{
"analyticsAccountId": "",
"analyticsPropertyId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics")
.setHeader("content-type", "application/json")
.setBody("{\n \"analyticsAccountId\": \"\",\n \"analyticsPropertyId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"analyticsAccountId\": \"\",\n \"analyticsPropertyId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"analyticsAccountId\": \"\",\n \"analyticsPropertyId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics")
.header("content-type", "application/json")
.body("{\n \"analyticsAccountId\": \"\",\n \"analyticsPropertyId\": \"\"\n}")
.asString();
const data = JSON.stringify({
analyticsAccountId: '',
analyticsPropertyId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics',
headers: {'content-type': 'application/json'},
data: {analyticsAccountId: '', analyticsPropertyId: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"analyticsAccountId":"","analyticsPropertyId":""}'
};
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}}/v1beta1/:parent:addGoogleAnalytics',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "analyticsAccountId": "",\n "analyticsPropertyId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"analyticsAccountId\": \"\",\n \"analyticsPropertyId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:parent:addGoogleAnalytics',
headers: {
'content-type': 'application/json'
}
};
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.write(JSON.stringify({analyticsAccountId: '', analyticsPropertyId: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics',
headers: {'content-type': 'application/json'},
body: {analyticsAccountId: '', analyticsPropertyId: ''},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
analyticsAccountId: '',
analyticsPropertyId: ''
});
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}}/v1beta1/:parent:addGoogleAnalytics',
headers: {'content-type': 'application/json'},
data: {analyticsAccountId: '', analyticsPropertyId: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"analyticsAccountId":"","analyticsPropertyId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"analyticsAccountId": @"",
@"analyticsPropertyId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
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}}/v1beta1/:parent:addGoogleAnalytics" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"analyticsAccountId\": \"\",\n \"analyticsPropertyId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'analyticsAccountId' => '',
'analyticsPropertyId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics', [
'body' => '{
"analyticsAccountId": "",
"analyticsPropertyId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'analyticsAccountId' => '',
'analyticsPropertyId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'analyticsAccountId' => '',
'analyticsPropertyId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"analyticsAccountId": "",
"analyticsPropertyId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"analyticsAccountId": "",
"analyticsPropertyId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"analyticsAccountId\": \"\",\n \"analyticsPropertyId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1beta1/:parent:addGoogleAnalytics", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics"
payload = {
"analyticsAccountId": "",
"analyticsPropertyId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics"
payload <- "{\n \"analyticsAccountId\": \"\",\n \"analyticsPropertyId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"analyticsAccountId\": \"\",\n \"analyticsPropertyId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1beta1/:parent:addGoogleAnalytics') do |req|
req.body = "{\n \"analyticsAccountId\": \"\",\n \"analyticsPropertyId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics";
let payload = json!({
"analyticsAccountId": "",
"analyticsPropertyId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1beta1/:parent:addGoogleAnalytics \
--header 'content-type: application/json' \
--data '{
"analyticsAccountId": "",
"analyticsPropertyId": ""
}'
echo '{
"analyticsAccountId": "",
"analyticsPropertyId": ""
}' | \
http POST {{baseUrl}}/v1beta1/:parent:addGoogleAnalytics \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "analyticsAccountId": "",\n "analyticsPropertyId": ""\n}' \
--output-document \
- {{baseUrl}}/v1beta1/:parent:addGoogleAnalytics
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"analyticsAccountId": "",
"analyticsPropertyId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent:addGoogleAnalytics")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
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
firebase.projects.androidApps.create
{{baseUrl}}/v1beta1/:parent/androidApps
QUERY PARAMS
parent
BODY json
{
"apiKeyId": "",
"appId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"packageName": "",
"projectId": "",
"sha1Hashes": [],
"sha256Hashes": [],
"state": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/androidApps");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"packageName\": \"\",\n \"projectId\": \"\",\n \"sha1Hashes\": [],\n \"sha256Hashes\": [],\n \"state\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1beta1/:parent/androidApps" {:content-type :json
:form-params {:apiKeyId ""
:appId ""
:displayName ""
:etag ""
:expireTime ""
:name ""
:packageName ""
:projectId ""
:sha1Hashes []
:sha256Hashes []
:state ""}})
require "http/client"
url = "{{baseUrl}}/v1beta1/:parent/androidApps"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"packageName\": \"\",\n \"projectId\": \"\",\n \"sha1Hashes\": [],\n \"sha256Hashes\": [],\n \"state\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1beta1/:parent/androidApps"),
Content = new StringContent("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"packageName\": \"\",\n \"projectId\": \"\",\n \"sha1Hashes\": [],\n \"sha256Hashes\": [],\n \"state\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/androidApps");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"packageName\": \"\",\n \"projectId\": \"\",\n \"sha1Hashes\": [],\n \"sha256Hashes\": [],\n \"state\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:parent/androidApps"
payload := strings.NewReader("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"packageName\": \"\",\n \"projectId\": \"\",\n \"sha1Hashes\": [],\n \"sha256Hashes\": [],\n \"state\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1beta1/:parent/androidApps HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 201
{
"apiKeyId": "",
"appId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"packageName": "",
"projectId": "",
"sha1Hashes": [],
"sha256Hashes": [],
"state": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent/androidApps")
.setHeader("content-type", "application/json")
.setBody("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"packageName\": \"\",\n \"projectId\": \"\",\n \"sha1Hashes\": [],\n \"sha256Hashes\": [],\n \"state\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:parent/androidApps"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"packageName\": \"\",\n \"projectId\": \"\",\n \"sha1Hashes\": [],\n \"sha256Hashes\": [],\n \"state\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"packageName\": \"\",\n \"projectId\": \"\",\n \"sha1Hashes\": [],\n \"sha256Hashes\": [],\n \"state\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent/androidApps")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent/androidApps")
.header("content-type", "application/json")
.body("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"packageName\": \"\",\n \"projectId\": \"\",\n \"sha1Hashes\": [],\n \"sha256Hashes\": [],\n \"state\": \"\"\n}")
.asString();
const data = JSON.stringify({
apiKeyId: '',
appId: '',
displayName: '',
etag: '',
expireTime: '',
name: '',
packageName: '',
projectId: '',
sha1Hashes: [],
sha256Hashes: [],
state: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1beta1/:parent/androidApps');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:parent/androidApps',
headers: {'content-type': 'application/json'},
data: {
apiKeyId: '',
appId: '',
displayName: '',
etag: '',
expireTime: '',
name: '',
packageName: '',
projectId: '',
sha1Hashes: [],
sha256Hashes: [],
state: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/androidApps';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"apiKeyId":"","appId":"","displayName":"","etag":"","expireTime":"","name":"","packageName":"","projectId":"","sha1Hashes":[],"sha256Hashes":[],"state":""}'
};
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}}/v1beta1/:parent/androidApps',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "apiKeyId": "",\n "appId": "",\n "displayName": "",\n "etag": "",\n "expireTime": "",\n "name": "",\n "packageName": "",\n "projectId": "",\n "sha1Hashes": [],\n "sha256Hashes": [],\n "state": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"packageName\": \"\",\n \"projectId\": \"\",\n \"sha1Hashes\": [],\n \"sha256Hashes\": [],\n \"state\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent/androidApps")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:parent/androidApps',
headers: {
'content-type': 'application/json'
}
};
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.write(JSON.stringify({
apiKeyId: '',
appId: '',
displayName: '',
etag: '',
expireTime: '',
name: '',
packageName: '',
projectId: '',
sha1Hashes: [],
sha256Hashes: [],
state: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:parent/androidApps',
headers: {'content-type': 'application/json'},
body: {
apiKeyId: '',
appId: '',
displayName: '',
etag: '',
expireTime: '',
name: '',
packageName: '',
projectId: '',
sha1Hashes: [],
sha256Hashes: [],
state: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1beta1/:parent/androidApps');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
apiKeyId: '',
appId: '',
displayName: '',
etag: '',
expireTime: '',
name: '',
packageName: '',
projectId: '',
sha1Hashes: [],
sha256Hashes: [],
state: ''
});
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}}/v1beta1/:parent/androidApps',
headers: {'content-type': 'application/json'},
data: {
apiKeyId: '',
appId: '',
displayName: '',
etag: '',
expireTime: '',
name: '',
packageName: '',
projectId: '',
sha1Hashes: [],
sha256Hashes: [],
state: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:parent/androidApps';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"apiKeyId":"","appId":"","displayName":"","etag":"","expireTime":"","name":"","packageName":"","projectId":"","sha1Hashes":[],"sha256Hashes":[],"state":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"apiKeyId": @"",
@"appId": @"",
@"displayName": @"",
@"etag": @"",
@"expireTime": @"",
@"name": @"",
@"packageName": @"",
@"projectId": @"",
@"sha1Hashes": @[ ],
@"sha256Hashes": @[ ],
@"state": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent/androidApps"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
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}}/v1beta1/:parent/androidApps" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"packageName\": \"\",\n \"projectId\": \"\",\n \"sha1Hashes\": [],\n \"sha256Hashes\": [],\n \"state\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:parent/androidApps",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'apiKeyId' => '',
'appId' => '',
'displayName' => '',
'etag' => '',
'expireTime' => '',
'name' => '',
'packageName' => '',
'projectId' => '',
'sha1Hashes' => [
],
'sha256Hashes' => [
],
'state' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1beta1/:parent/androidApps', [
'body' => '{
"apiKeyId": "",
"appId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"packageName": "",
"projectId": "",
"sha1Hashes": [],
"sha256Hashes": [],
"state": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/androidApps');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'apiKeyId' => '',
'appId' => '',
'displayName' => '',
'etag' => '',
'expireTime' => '',
'name' => '',
'packageName' => '',
'projectId' => '',
'sha1Hashes' => [
],
'sha256Hashes' => [
],
'state' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'apiKeyId' => '',
'appId' => '',
'displayName' => '',
'etag' => '',
'expireTime' => '',
'name' => '',
'packageName' => '',
'projectId' => '',
'sha1Hashes' => [
],
'sha256Hashes' => [
],
'state' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent/androidApps');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:parent/androidApps' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"apiKeyId": "",
"appId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"packageName": "",
"projectId": "",
"sha1Hashes": [],
"sha256Hashes": [],
"state": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/androidApps' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"apiKeyId": "",
"appId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"packageName": "",
"projectId": "",
"sha1Hashes": [],
"sha256Hashes": [],
"state": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"packageName\": \"\",\n \"projectId\": \"\",\n \"sha1Hashes\": [],\n \"sha256Hashes\": [],\n \"state\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1beta1/:parent/androidApps", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:parent/androidApps"
payload = {
"apiKeyId": "",
"appId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"packageName": "",
"projectId": "",
"sha1Hashes": [],
"sha256Hashes": [],
"state": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:parent/androidApps"
payload <- "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"packageName\": \"\",\n \"projectId\": \"\",\n \"sha1Hashes\": [],\n \"sha256Hashes\": [],\n \"state\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:parent/androidApps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"packageName\": \"\",\n \"projectId\": \"\",\n \"sha1Hashes\": [],\n \"sha256Hashes\": [],\n \"state\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1beta1/:parent/androidApps') do |req|
req.body = "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"packageName\": \"\",\n \"projectId\": \"\",\n \"sha1Hashes\": [],\n \"sha256Hashes\": [],\n \"state\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:parent/androidApps";
let payload = json!({
"apiKeyId": "",
"appId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"packageName": "",
"projectId": "",
"sha1Hashes": (),
"sha256Hashes": (),
"state": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1beta1/:parent/androidApps \
--header 'content-type: application/json' \
--data '{
"apiKeyId": "",
"appId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"packageName": "",
"projectId": "",
"sha1Hashes": [],
"sha256Hashes": [],
"state": ""
}'
echo '{
"apiKeyId": "",
"appId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"packageName": "",
"projectId": "",
"sha1Hashes": [],
"sha256Hashes": [],
"state": ""
}' | \
http POST {{baseUrl}}/v1beta1/:parent/androidApps \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "apiKeyId": "",\n "appId": "",\n "displayName": "",\n "etag": "",\n "expireTime": "",\n "name": "",\n "packageName": "",\n "projectId": "",\n "sha1Hashes": [],\n "sha256Hashes": [],\n "state": ""\n}' \
--output-document \
- {{baseUrl}}/v1beta1/:parent/androidApps
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"apiKeyId": "",
"appId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"packageName": "",
"projectId": "",
"sha1Hashes": [],
"sha256Hashes": [],
"state": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/androidApps")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
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
firebase.projects.androidApps.list
{{baseUrl}}/v1beta1/:parent/androidApps
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/androidApps");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1beta1/:parent/androidApps")
require "http/client"
url = "{{baseUrl}}/v1beta1/:parent/androidApps"
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}}/v1beta1/:parent/androidApps"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/androidApps");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:parent/androidApps"
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/v1beta1/:parent/androidApps HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1beta1/:parent/androidApps")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:parent/androidApps"))
.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}}/v1beta1/:parent/androidApps")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:parent/androidApps")
.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}}/v1beta1/:parent/androidApps');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1beta1/:parent/androidApps'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/androidApps';
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}}/v1beta1/:parent/androidApps',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent/androidApps")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:parent/androidApps',
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}}/v1beta1/:parent/androidApps'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1beta1/:parent/androidApps');
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}}/v1beta1/:parent/androidApps'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:parent/androidApps';
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}}/v1beta1/:parent/androidApps"]
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}}/v1beta1/:parent/androidApps" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:parent/androidApps",
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}}/v1beta1/:parent/androidApps');
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/androidApps');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1beta1/:parent/androidApps');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:parent/androidApps' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/androidApps' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1beta1/:parent/androidApps")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:parent/androidApps"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:parent/androidApps"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:parent/androidApps")
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/v1beta1/:parent/androidApps') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:parent/androidApps";
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}}/v1beta1/:parent/androidApps
http GET {{baseUrl}}/v1beta1/:parent/androidApps
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1beta1/:parent/androidApps
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/androidApps")! 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
firebase.projects.androidApps.sha.create
{{baseUrl}}/v1beta1/:parent/sha
QUERY PARAMS
parent
BODY json
{
"certType": "",
"name": "",
"shaHash": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/sha");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"certType\": \"\",\n \"name\": \"\",\n \"shaHash\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1beta1/:parent/sha" {:content-type :json
:form-params {:certType ""
:name ""
:shaHash ""}})
require "http/client"
url = "{{baseUrl}}/v1beta1/:parent/sha"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"certType\": \"\",\n \"name\": \"\",\n \"shaHash\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1beta1/:parent/sha"),
Content = new StringContent("{\n \"certType\": \"\",\n \"name\": \"\",\n \"shaHash\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/sha");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"certType\": \"\",\n \"name\": \"\",\n \"shaHash\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:parent/sha"
payload := strings.NewReader("{\n \"certType\": \"\",\n \"name\": \"\",\n \"shaHash\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1beta1/:parent/sha HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 51
{
"certType": "",
"name": "",
"shaHash": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent/sha")
.setHeader("content-type", "application/json")
.setBody("{\n \"certType\": \"\",\n \"name\": \"\",\n \"shaHash\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:parent/sha"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"certType\": \"\",\n \"name\": \"\",\n \"shaHash\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"certType\": \"\",\n \"name\": \"\",\n \"shaHash\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent/sha")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent/sha")
.header("content-type", "application/json")
.body("{\n \"certType\": \"\",\n \"name\": \"\",\n \"shaHash\": \"\"\n}")
.asString();
const data = JSON.stringify({
certType: '',
name: '',
shaHash: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1beta1/:parent/sha');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:parent/sha',
headers: {'content-type': 'application/json'},
data: {certType: '', name: '', shaHash: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/sha';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"certType":"","name":"","shaHash":""}'
};
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}}/v1beta1/:parent/sha',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "certType": "",\n "name": "",\n "shaHash": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"certType\": \"\",\n \"name\": \"\",\n \"shaHash\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent/sha")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:parent/sha',
headers: {
'content-type': 'application/json'
}
};
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.write(JSON.stringify({certType: '', name: '', shaHash: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:parent/sha',
headers: {'content-type': 'application/json'},
body: {certType: '', name: '', shaHash: ''},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1beta1/:parent/sha');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
certType: '',
name: '',
shaHash: ''
});
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}}/v1beta1/:parent/sha',
headers: {'content-type': 'application/json'},
data: {certType: '', name: '', shaHash: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:parent/sha';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"certType":"","name":"","shaHash":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certType": @"",
@"name": @"",
@"shaHash": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent/sha"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
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}}/v1beta1/:parent/sha" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"certType\": \"\",\n \"name\": \"\",\n \"shaHash\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:parent/sha",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'certType' => '',
'name' => '',
'shaHash' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1beta1/:parent/sha', [
'body' => '{
"certType": "",
"name": "",
"shaHash": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/sha');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'certType' => '',
'name' => '',
'shaHash' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'certType' => '',
'name' => '',
'shaHash' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent/sha');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:parent/sha' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"certType": "",
"name": "",
"shaHash": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/sha' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"certType": "",
"name": "",
"shaHash": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"certType\": \"\",\n \"name\": \"\",\n \"shaHash\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1beta1/:parent/sha", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:parent/sha"
payload = {
"certType": "",
"name": "",
"shaHash": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:parent/sha"
payload <- "{\n \"certType\": \"\",\n \"name\": \"\",\n \"shaHash\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:parent/sha")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"certType\": \"\",\n \"name\": \"\",\n \"shaHash\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1beta1/:parent/sha') do |req|
req.body = "{\n \"certType\": \"\",\n \"name\": \"\",\n \"shaHash\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:parent/sha";
let payload = json!({
"certType": "",
"name": "",
"shaHash": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1beta1/:parent/sha \
--header 'content-type: application/json' \
--data '{
"certType": "",
"name": "",
"shaHash": ""
}'
echo '{
"certType": "",
"name": "",
"shaHash": ""
}' | \
http POST {{baseUrl}}/v1beta1/:parent/sha \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "certType": "",\n "name": "",\n "shaHash": ""\n}' \
--output-document \
- {{baseUrl}}/v1beta1/:parent/sha
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"certType": "",
"name": "",
"shaHash": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/sha")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
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()
DELETE
firebase.projects.androidApps.sha.delete
{{baseUrl}}/v1beta1/:name
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:name");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/v1beta1/:name")
require "http/client"
url = "{{baseUrl}}/v1beta1/:name"
response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/v1beta1/:name"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:name");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:name"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/v1beta1/:name HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v1beta1/:name")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:name"))
.method("DELETE", 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}}/v1beta1/:name")
.delete(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v1beta1/:name")
.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('DELETE', '{{baseUrl}}/v1beta1/:name');
xhr.send(data);
import axios from 'axios';
const options = {method: 'DELETE', url: '{{baseUrl}}/v1beta1/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:name';
const options = {method: 'DELETE'};
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}}/v1beta1/:name',
method: 'DELETE',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:name")
.delete(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:name',
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: 'DELETE', url: '{{baseUrl}}/v1beta1/:name'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/v1beta1/:name');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'DELETE', url: '{{baseUrl}}/v1beta1/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:name';
const options = {method: 'DELETE'};
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}}/v1beta1/:name"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
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}}/v1beta1/:name" in
Client.call `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:name",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/v1beta1/:name');
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:name');
$request->setMethod(HTTP_METH_DELETE);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1beta1/:name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:name' -Method DELETE
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:name' -Method DELETE
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("DELETE", "/baseUrl/v1beta1/:name")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:name"
response = requests.delete(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:name"
response <- VERB("DELETE", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:name")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/v1beta1/:name') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:name";
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/v1beta1/:name
http DELETE {{baseUrl}}/v1beta1/:name
wget --quiet \
--method DELETE \
--output-document \
- {{baseUrl}}/v1beta1/:name
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:name")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
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
firebase.projects.androidApps.sha.list
{{baseUrl}}/v1beta1/:parent/sha
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/sha");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1beta1/:parent/sha")
require "http/client"
url = "{{baseUrl}}/v1beta1/:parent/sha"
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}}/v1beta1/:parent/sha"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/sha");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:parent/sha"
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/v1beta1/:parent/sha HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1beta1/:parent/sha")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:parent/sha"))
.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}}/v1beta1/:parent/sha")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:parent/sha")
.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}}/v1beta1/:parent/sha');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1beta1/:parent/sha'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/sha';
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}}/v1beta1/:parent/sha',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent/sha")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:parent/sha',
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}}/v1beta1/:parent/sha'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1beta1/:parent/sha');
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}}/v1beta1/:parent/sha'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:parent/sha';
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}}/v1beta1/:parent/sha"]
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}}/v1beta1/:parent/sha" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:parent/sha",
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}}/v1beta1/:parent/sha');
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/sha');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1beta1/:parent/sha');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:parent/sha' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/sha' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1beta1/:parent/sha")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:parent/sha"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:parent/sha"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:parent/sha")
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/v1beta1/:parent/sha') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:parent/sha";
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}}/v1beta1/:parent/sha
http GET {{baseUrl}}/v1beta1/:parent/sha
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1beta1/:parent/sha
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/sha")! 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
firebase.projects.availableLocations.list
{{baseUrl}}/v1beta1/:parent/availableLocations
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/availableLocations");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1beta1/:parent/availableLocations")
require "http/client"
url = "{{baseUrl}}/v1beta1/:parent/availableLocations"
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}}/v1beta1/:parent/availableLocations"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/availableLocations");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:parent/availableLocations"
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/v1beta1/:parent/availableLocations HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1beta1/:parent/availableLocations")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:parent/availableLocations"))
.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}}/v1beta1/:parent/availableLocations")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:parent/availableLocations")
.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}}/v1beta1/:parent/availableLocations');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1beta1/:parent/availableLocations'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/availableLocations';
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}}/v1beta1/:parent/availableLocations',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent/availableLocations")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:parent/availableLocations',
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}}/v1beta1/:parent/availableLocations'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1beta1/:parent/availableLocations');
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}}/v1beta1/:parent/availableLocations'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:parent/availableLocations';
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}}/v1beta1/:parent/availableLocations"]
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}}/v1beta1/:parent/availableLocations" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:parent/availableLocations",
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}}/v1beta1/:parent/availableLocations');
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/availableLocations');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1beta1/:parent/availableLocations');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:parent/availableLocations' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/availableLocations' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1beta1/:parent/availableLocations")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:parent/availableLocations"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:parent/availableLocations"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:parent/availableLocations")
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/v1beta1/:parent/availableLocations') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:parent/availableLocations";
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}}/v1beta1/:parent/availableLocations
http GET {{baseUrl}}/v1beta1/:parent/availableLocations
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1beta1/:parent/availableLocations
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/availableLocations")! 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
firebase.projects.defaultLocation.finalize
{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize
QUERY PARAMS
parent
BODY json
{
"locationId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"locationId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize" {:content-type :json
:form-params {:locationId ""}})
require "http/client"
url = "{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"locationId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize"),
Content = new StringContent("{\n \"locationId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"locationId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize"
payload := strings.NewReader("{\n \"locationId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1beta1/:parent/defaultLocation:finalize HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 22
{
"locationId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize")
.setHeader("content-type", "application/json")
.setBody("{\n \"locationId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"locationId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"locationId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize")
.header("content-type", "application/json")
.body("{\n \"locationId\": \"\"\n}")
.asString();
const data = JSON.stringify({
locationId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize',
headers: {'content-type': 'application/json'},
data: {locationId: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"locationId":""}'
};
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}}/v1beta1/:parent/defaultLocation:finalize',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "locationId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"locationId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:parent/defaultLocation:finalize',
headers: {
'content-type': 'application/json'
}
};
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.write(JSON.stringify({locationId: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize',
headers: {'content-type': 'application/json'},
body: {locationId: ''},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
locationId: ''
});
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}}/v1beta1/:parent/defaultLocation:finalize',
headers: {'content-type': 'application/json'},
data: {locationId: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"locationId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"locationId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
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}}/v1beta1/:parent/defaultLocation:finalize" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"locationId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'locationId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize', [
'body' => '{
"locationId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'locationId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'locationId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"locationId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"locationId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"locationId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1beta1/:parent/defaultLocation:finalize", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize"
payload = { "locationId": "" }
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize"
payload <- "{\n \"locationId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"locationId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1beta1/:parent/defaultLocation:finalize') do |req|
req.body = "{\n \"locationId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize";
let payload = json!({"locationId": ""});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1beta1/:parent/defaultLocation:finalize \
--header 'content-type: application/json' \
--data '{
"locationId": ""
}'
echo '{
"locationId": ""
}' | \
http POST {{baseUrl}}/v1beta1/:parent/defaultLocation:finalize \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "locationId": ""\n}' \
--output-document \
- {{baseUrl}}/v1beta1/:parent/defaultLocation:finalize
import Foundation
let headers = ["content-type": "application/json"]
let parameters = ["locationId": ""] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/defaultLocation:finalize")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
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
firebase.projects.iosApps.create
{{baseUrl}}/v1beta1/:parent/iosApps
QUERY PARAMS
parent
BODY json
{
"apiKeyId": "",
"appId": "",
"appStoreId": "",
"bundleId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"teamId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/iosApps");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appStoreId\": \"\",\n \"bundleId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"teamId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1beta1/:parent/iosApps" {:content-type :json
:form-params {:apiKeyId ""
:appId ""
:appStoreId ""
:bundleId ""
:displayName ""
:etag ""
:expireTime ""
:name ""
:projectId ""
:state ""
:teamId ""}})
require "http/client"
url = "{{baseUrl}}/v1beta1/:parent/iosApps"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appStoreId\": \"\",\n \"bundleId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"teamId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1beta1/:parent/iosApps"),
Content = new StringContent("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appStoreId\": \"\",\n \"bundleId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"teamId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/iosApps");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appStoreId\": \"\",\n \"bundleId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"teamId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:parent/iosApps"
payload := strings.NewReader("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appStoreId\": \"\",\n \"bundleId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"teamId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1beta1/:parent/iosApps HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 192
{
"apiKeyId": "",
"appId": "",
"appStoreId": "",
"bundleId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"teamId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent/iosApps")
.setHeader("content-type", "application/json")
.setBody("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appStoreId\": \"\",\n \"bundleId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"teamId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:parent/iosApps"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appStoreId\": \"\",\n \"bundleId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"teamId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appStoreId\": \"\",\n \"bundleId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"teamId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent/iosApps")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent/iosApps")
.header("content-type", "application/json")
.body("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appStoreId\": \"\",\n \"bundleId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"teamId\": \"\"\n}")
.asString();
const data = JSON.stringify({
apiKeyId: '',
appId: '',
appStoreId: '',
bundleId: '',
displayName: '',
etag: '',
expireTime: '',
name: '',
projectId: '',
state: '',
teamId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1beta1/:parent/iosApps');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:parent/iosApps',
headers: {'content-type': 'application/json'},
data: {
apiKeyId: '',
appId: '',
appStoreId: '',
bundleId: '',
displayName: '',
etag: '',
expireTime: '',
name: '',
projectId: '',
state: '',
teamId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/iosApps';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"apiKeyId":"","appId":"","appStoreId":"","bundleId":"","displayName":"","etag":"","expireTime":"","name":"","projectId":"","state":"","teamId":""}'
};
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}}/v1beta1/:parent/iosApps',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "apiKeyId": "",\n "appId": "",\n "appStoreId": "",\n "bundleId": "",\n "displayName": "",\n "etag": "",\n "expireTime": "",\n "name": "",\n "projectId": "",\n "state": "",\n "teamId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appStoreId\": \"\",\n \"bundleId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"teamId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent/iosApps")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:parent/iosApps',
headers: {
'content-type': 'application/json'
}
};
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.write(JSON.stringify({
apiKeyId: '',
appId: '',
appStoreId: '',
bundleId: '',
displayName: '',
etag: '',
expireTime: '',
name: '',
projectId: '',
state: '',
teamId: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:parent/iosApps',
headers: {'content-type': 'application/json'},
body: {
apiKeyId: '',
appId: '',
appStoreId: '',
bundleId: '',
displayName: '',
etag: '',
expireTime: '',
name: '',
projectId: '',
state: '',
teamId: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1beta1/:parent/iosApps');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
apiKeyId: '',
appId: '',
appStoreId: '',
bundleId: '',
displayName: '',
etag: '',
expireTime: '',
name: '',
projectId: '',
state: '',
teamId: ''
});
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}}/v1beta1/:parent/iosApps',
headers: {'content-type': 'application/json'},
data: {
apiKeyId: '',
appId: '',
appStoreId: '',
bundleId: '',
displayName: '',
etag: '',
expireTime: '',
name: '',
projectId: '',
state: '',
teamId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:parent/iosApps';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"apiKeyId":"","appId":"","appStoreId":"","bundleId":"","displayName":"","etag":"","expireTime":"","name":"","projectId":"","state":"","teamId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"apiKeyId": @"",
@"appId": @"",
@"appStoreId": @"",
@"bundleId": @"",
@"displayName": @"",
@"etag": @"",
@"expireTime": @"",
@"name": @"",
@"projectId": @"",
@"state": @"",
@"teamId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent/iosApps"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
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}}/v1beta1/:parent/iosApps" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appStoreId\": \"\",\n \"bundleId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"teamId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:parent/iosApps",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'apiKeyId' => '',
'appId' => '',
'appStoreId' => '',
'bundleId' => '',
'displayName' => '',
'etag' => '',
'expireTime' => '',
'name' => '',
'projectId' => '',
'state' => '',
'teamId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1beta1/:parent/iosApps', [
'body' => '{
"apiKeyId": "",
"appId": "",
"appStoreId": "",
"bundleId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"teamId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/iosApps');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'apiKeyId' => '',
'appId' => '',
'appStoreId' => '',
'bundleId' => '',
'displayName' => '',
'etag' => '',
'expireTime' => '',
'name' => '',
'projectId' => '',
'state' => '',
'teamId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'apiKeyId' => '',
'appId' => '',
'appStoreId' => '',
'bundleId' => '',
'displayName' => '',
'etag' => '',
'expireTime' => '',
'name' => '',
'projectId' => '',
'state' => '',
'teamId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent/iosApps');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:parent/iosApps' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"apiKeyId": "",
"appId": "",
"appStoreId": "",
"bundleId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"teamId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/iosApps' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"apiKeyId": "",
"appId": "",
"appStoreId": "",
"bundleId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"teamId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appStoreId\": \"\",\n \"bundleId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"teamId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1beta1/:parent/iosApps", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:parent/iosApps"
payload = {
"apiKeyId": "",
"appId": "",
"appStoreId": "",
"bundleId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"teamId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:parent/iosApps"
payload <- "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appStoreId\": \"\",\n \"bundleId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"teamId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:parent/iosApps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appStoreId\": \"\",\n \"bundleId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"teamId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1beta1/:parent/iosApps') do |req|
req.body = "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appStoreId\": \"\",\n \"bundleId\": \"\",\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"teamId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:parent/iosApps";
let payload = json!({
"apiKeyId": "",
"appId": "",
"appStoreId": "",
"bundleId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"teamId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1beta1/:parent/iosApps \
--header 'content-type: application/json' \
--data '{
"apiKeyId": "",
"appId": "",
"appStoreId": "",
"bundleId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"teamId": ""
}'
echo '{
"apiKeyId": "",
"appId": "",
"appStoreId": "",
"bundleId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"teamId": ""
}' | \
http POST {{baseUrl}}/v1beta1/:parent/iosApps \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "apiKeyId": "",\n "appId": "",\n "appStoreId": "",\n "bundleId": "",\n "displayName": "",\n "etag": "",\n "expireTime": "",\n "name": "",\n "projectId": "",\n "state": "",\n "teamId": ""\n}' \
--output-document \
- {{baseUrl}}/v1beta1/:parent/iosApps
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"apiKeyId": "",
"appId": "",
"appStoreId": "",
"bundleId": "",
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"teamId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/iosApps")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
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
firebase.projects.iosApps.list
{{baseUrl}}/v1beta1/:parent/iosApps
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/iosApps");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1beta1/:parent/iosApps")
require "http/client"
url = "{{baseUrl}}/v1beta1/:parent/iosApps"
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}}/v1beta1/:parent/iosApps"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/iosApps");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:parent/iosApps"
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/v1beta1/:parent/iosApps HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1beta1/:parent/iosApps")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:parent/iosApps"))
.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}}/v1beta1/:parent/iosApps")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:parent/iosApps")
.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}}/v1beta1/:parent/iosApps');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1beta1/:parent/iosApps'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/iosApps';
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}}/v1beta1/:parent/iosApps',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent/iosApps")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:parent/iosApps',
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}}/v1beta1/:parent/iosApps'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1beta1/:parent/iosApps');
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}}/v1beta1/:parent/iosApps'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:parent/iosApps';
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}}/v1beta1/:parent/iosApps"]
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}}/v1beta1/:parent/iosApps" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:parent/iosApps",
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}}/v1beta1/:parent/iosApps');
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/iosApps');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1beta1/:parent/iosApps');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:parent/iosApps' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/iosApps' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1beta1/:parent/iosApps")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:parent/iosApps"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:parent/iosApps"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:parent/iosApps")
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/v1beta1/:parent/iosApps') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:parent/iosApps";
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}}/v1beta1/:parent/iosApps
http GET {{baseUrl}}/v1beta1/:parent/iosApps
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1beta1/:parent/iosApps
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/iosApps")! 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
firebase.projects.list
{{baseUrl}}/v1beta1/projects
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/projects");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1beta1/projects")
require "http/client"
url = "{{baseUrl}}/v1beta1/projects"
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}}/v1beta1/projects"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/projects");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/projects"
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/v1beta1/projects HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1beta1/projects")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/projects"))
.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}}/v1beta1/projects")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/projects")
.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}}/v1beta1/projects');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1beta1/projects'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/projects';
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}}/v1beta1/projects',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/projects")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/projects',
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}}/v1beta1/projects'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1beta1/projects');
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}}/v1beta1/projects'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/projects';
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}}/v1beta1/projects"]
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}}/v1beta1/projects" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/projects",
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}}/v1beta1/projects');
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/projects');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1beta1/projects');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/projects' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/projects' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1beta1/projects")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/projects"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/projects"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/projects")
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/v1beta1/projects') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/projects";
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}}/v1beta1/projects
http GET {{baseUrl}}/v1beta1/projects
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1beta1/projects
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/projects")! 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
firebase.projects.removeAnalytics
{{baseUrl}}/v1beta1/:parent:removeAnalytics
QUERY PARAMS
parent
BODY json
{
"analyticsPropertyId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent:removeAnalytics");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"analyticsPropertyId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1beta1/:parent:removeAnalytics" {:content-type :json
:form-params {:analyticsPropertyId ""}})
require "http/client"
url = "{{baseUrl}}/v1beta1/:parent:removeAnalytics"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"analyticsPropertyId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1beta1/:parent:removeAnalytics"),
Content = new StringContent("{\n \"analyticsPropertyId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent:removeAnalytics");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"analyticsPropertyId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:parent:removeAnalytics"
payload := strings.NewReader("{\n \"analyticsPropertyId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1beta1/:parent:removeAnalytics HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 31
{
"analyticsPropertyId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent:removeAnalytics")
.setHeader("content-type", "application/json")
.setBody("{\n \"analyticsPropertyId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:parent:removeAnalytics"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"analyticsPropertyId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"analyticsPropertyId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent:removeAnalytics")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent:removeAnalytics")
.header("content-type", "application/json")
.body("{\n \"analyticsPropertyId\": \"\"\n}")
.asString();
const data = JSON.stringify({
analyticsPropertyId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1beta1/:parent:removeAnalytics');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:parent:removeAnalytics',
headers: {'content-type': 'application/json'},
data: {analyticsPropertyId: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent:removeAnalytics';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"analyticsPropertyId":""}'
};
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}}/v1beta1/:parent:removeAnalytics',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "analyticsPropertyId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"analyticsPropertyId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent:removeAnalytics")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:parent:removeAnalytics',
headers: {
'content-type': 'application/json'
}
};
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.write(JSON.stringify({analyticsPropertyId: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:parent:removeAnalytics',
headers: {'content-type': 'application/json'},
body: {analyticsPropertyId: ''},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1beta1/:parent:removeAnalytics');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
analyticsPropertyId: ''
});
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}}/v1beta1/:parent:removeAnalytics',
headers: {'content-type': 'application/json'},
data: {analyticsPropertyId: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:parent:removeAnalytics';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"analyticsPropertyId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"analyticsPropertyId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent:removeAnalytics"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
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}}/v1beta1/:parent:removeAnalytics" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"analyticsPropertyId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:parent:removeAnalytics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'analyticsPropertyId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1beta1/:parent:removeAnalytics', [
'body' => '{
"analyticsPropertyId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent:removeAnalytics');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'analyticsPropertyId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'analyticsPropertyId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent:removeAnalytics');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:parent:removeAnalytics' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"analyticsPropertyId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent:removeAnalytics' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"analyticsPropertyId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"analyticsPropertyId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1beta1/:parent:removeAnalytics", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:parent:removeAnalytics"
payload = { "analyticsPropertyId": "" }
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:parent:removeAnalytics"
payload <- "{\n \"analyticsPropertyId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:parent:removeAnalytics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"analyticsPropertyId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1beta1/:parent:removeAnalytics') do |req|
req.body = "{\n \"analyticsPropertyId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:parent:removeAnalytics";
let payload = json!({"analyticsPropertyId": ""});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1beta1/:parent:removeAnalytics \
--header 'content-type: application/json' \
--data '{
"analyticsPropertyId": ""
}'
echo '{
"analyticsPropertyId": ""
}' | \
http POST {{baseUrl}}/v1beta1/:parent:removeAnalytics \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "analyticsPropertyId": ""\n}' \
--output-document \
- {{baseUrl}}/v1beta1/:parent:removeAnalytics
import Foundation
let headers = ["content-type": "application/json"]
let parameters = ["analyticsPropertyId": ""] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent:removeAnalytics")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
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
firebase.projects.searchApps
{{baseUrl}}/v1beta1/:parent:searchApps
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent:searchApps");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1beta1/:parent:searchApps")
require "http/client"
url = "{{baseUrl}}/v1beta1/:parent:searchApps"
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}}/v1beta1/:parent:searchApps"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent:searchApps");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:parent:searchApps"
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/v1beta1/:parent:searchApps HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1beta1/:parent:searchApps")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:parent:searchApps"))
.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}}/v1beta1/:parent:searchApps")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:parent:searchApps")
.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}}/v1beta1/:parent:searchApps');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1beta1/:parent:searchApps'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent:searchApps';
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}}/v1beta1/:parent:searchApps',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent:searchApps")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:parent:searchApps',
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}}/v1beta1/:parent:searchApps'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1beta1/:parent:searchApps');
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}}/v1beta1/:parent:searchApps'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:parent:searchApps';
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}}/v1beta1/:parent:searchApps"]
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}}/v1beta1/:parent:searchApps" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:parent:searchApps",
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}}/v1beta1/:parent:searchApps');
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent:searchApps');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1beta1/:parent:searchApps');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:parent:searchApps' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent:searchApps' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1beta1/:parent:searchApps")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:parent:searchApps"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:parent:searchApps"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:parent:searchApps")
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/v1beta1/:parent:searchApps') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:parent:searchApps";
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}}/v1beta1/:parent:searchApps
http GET {{baseUrl}}/v1beta1/:parent:searchApps
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1beta1/:parent:searchApps
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent:searchApps")! 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
firebase.projects.webApps.create
{{baseUrl}}/v1beta1/:parent/webApps
QUERY PARAMS
parent
BODY json
{
"apiKeyId": "",
"appId": "",
"appUrls": [],
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/webApps");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1beta1/:parent/webApps" {:content-type :json
:form-params {:apiKeyId ""
:appId ""
:appUrls []
:displayName ""
:etag ""
:expireTime ""
:name ""
:projectId ""
:state ""
:webId ""}})
require "http/client"
url = "{{baseUrl}}/v1beta1/:parent/webApps"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1beta1/:parent/webApps"),
Content = new StringContent("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/webApps");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:parent/webApps"
payload := strings.NewReader("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1beta1/:parent/webApps HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 170
{
"apiKeyId": "",
"appId": "",
"appUrls": [],
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent/webApps")
.setHeader("content-type", "application/json")
.setBody("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:parent/webApps"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent/webApps")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent/webApps")
.header("content-type", "application/json")
.body("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}")
.asString();
const data = JSON.stringify({
apiKeyId: '',
appId: '',
appUrls: [],
displayName: '',
etag: '',
expireTime: '',
name: '',
projectId: '',
state: '',
webId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1beta1/:parent/webApps');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:parent/webApps',
headers: {'content-type': 'application/json'},
data: {
apiKeyId: '',
appId: '',
appUrls: [],
displayName: '',
etag: '',
expireTime: '',
name: '',
projectId: '',
state: '',
webId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/webApps';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"apiKeyId":"","appId":"","appUrls":[],"displayName":"","etag":"","expireTime":"","name":"","projectId":"","state":"","webId":""}'
};
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}}/v1beta1/:parent/webApps',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "apiKeyId": "",\n "appId": "",\n "appUrls": [],\n "displayName": "",\n "etag": "",\n "expireTime": "",\n "name": "",\n "projectId": "",\n "state": "",\n "webId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent/webApps")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:parent/webApps',
headers: {
'content-type': 'application/json'
}
};
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.write(JSON.stringify({
apiKeyId: '',
appId: '',
appUrls: [],
displayName: '',
etag: '',
expireTime: '',
name: '',
projectId: '',
state: '',
webId: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:parent/webApps',
headers: {'content-type': 'application/json'},
body: {
apiKeyId: '',
appId: '',
appUrls: [],
displayName: '',
etag: '',
expireTime: '',
name: '',
projectId: '',
state: '',
webId: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1beta1/:parent/webApps');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
apiKeyId: '',
appId: '',
appUrls: [],
displayName: '',
etag: '',
expireTime: '',
name: '',
projectId: '',
state: '',
webId: ''
});
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}}/v1beta1/:parent/webApps',
headers: {'content-type': 'application/json'},
data: {
apiKeyId: '',
appId: '',
appUrls: [],
displayName: '',
etag: '',
expireTime: '',
name: '',
projectId: '',
state: '',
webId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:parent/webApps';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"apiKeyId":"","appId":"","appUrls":[],"displayName":"","etag":"","expireTime":"","name":"","projectId":"","state":"","webId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"apiKeyId": @"",
@"appId": @"",
@"appUrls": @[ ],
@"displayName": @"",
@"etag": @"",
@"expireTime": @"",
@"name": @"",
@"projectId": @"",
@"state": @"",
@"webId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent/webApps"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
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}}/v1beta1/:parent/webApps" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:parent/webApps",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'apiKeyId' => '',
'appId' => '',
'appUrls' => [
],
'displayName' => '',
'etag' => '',
'expireTime' => '',
'name' => '',
'projectId' => '',
'state' => '',
'webId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1beta1/:parent/webApps', [
'body' => '{
"apiKeyId": "",
"appId": "",
"appUrls": [],
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/webApps');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'apiKeyId' => '',
'appId' => '',
'appUrls' => [
],
'displayName' => '',
'etag' => '',
'expireTime' => '',
'name' => '',
'projectId' => '',
'state' => '',
'webId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'apiKeyId' => '',
'appId' => '',
'appUrls' => [
],
'displayName' => '',
'etag' => '',
'expireTime' => '',
'name' => '',
'projectId' => '',
'state' => '',
'webId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent/webApps');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:parent/webApps' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"apiKeyId": "",
"appId": "",
"appUrls": [],
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/webApps' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"apiKeyId": "",
"appId": "",
"appUrls": [],
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1beta1/:parent/webApps", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:parent/webApps"
payload = {
"apiKeyId": "",
"appId": "",
"appUrls": [],
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:parent/webApps"
payload <- "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:parent/webApps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1beta1/:parent/webApps') do |req|
req.body = "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:parent/webApps";
let payload = json!({
"apiKeyId": "",
"appId": "",
"appUrls": (),
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1beta1/:parent/webApps \
--header 'content-type: application/json' \
--data '{
"apiKeyId": "",
"appId": "",
"appUrls": [],
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
}'
echo '{
"apiKeyId": "",
"appId": "",
"appUrls": [],
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
}' | \
http POST {{baseUrl}}/v1beta1/:parent/webApps \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "apiKeyId": "",\n "appId": "",\n "appUrls": [],\n "displayName": "",\n "etag": "",\n "expireTime": "",\n "name": "",\n "projectId": "",\n "state": "",\n "webId": ""\n}' \
--output-document \
- {{baseUrl}}/v1beta1/:parent/webApps
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"apiKeyId": "",
"appId": "",
"appUrls": [],
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/webApps")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
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
firebase.projects.webApps.getConfig
{{baseUrl}}/v1beta1/:name
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:name");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1beta1/:name")
require "http/client"
url = "{{baseUrl}}/v1beta1/:name"
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}}/v1beta1/:name"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:name"
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/v1beta1/:name HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1beta1/:name")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:name"))
.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}}/v1beta1/:name")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:name")
.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}}/v1beta1/:name');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1beta1/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:name';
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}}/v1beta1/:name',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:name")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:name',
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}}/v1beta1/:name'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1beta1/:name');
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}}/v1beta1/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:name';
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}}/v1beta1/:name"]
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}}/v1beta1/:name" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:name",
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}}/v1beta1/:name');
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:name');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1beta1/:name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:name' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:name' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1beta1/:name")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:name"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:name"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:name")
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/v1beta1/:name') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:name";
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}}/v1beta1/:name
http GET {{baseUrl}}/v1beta1/:name
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1beta1/:name
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:name")! 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
firebase.projects.webApps.list
{{baseUrl}}/v1beta1/:parent/webApps
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/webApps");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1beta1/:parent/webApps")
require "http/client"
url = "{{baseUrl}}/v1beta1/:parent/webApps"
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}}/v1beta1/:parent/webApps"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/webApps");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:parent/webApps"
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/v1beta1/:parent/webApps HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1beta1/:parent/webApps")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:parent/webApps"))
.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}}/v1beta1/:parent/webApps")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:parent/webApps")
.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}}/v1beta1/:parent/webApps');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v1beta1/:parent/webApps'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/webApps';
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}}/v1beta1/:parent/webApps',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:parent/webApps")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:parent/webApps',
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}}/v1beta1/:parent/webApps'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1beta1/:parent/webApps');
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}}/v1beta1/:parent/webApps'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:parent/webApps';
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}}/v1beta1/:parent/webApps"]
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}}/v1beta1/:parent/webApps" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:parent/webApps",
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}}/v1beta1/:parent/webApps');
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/webApps');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1beta1/:parent/webApps');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:parent/webApps' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/webApps' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v1beta1/:parent/webApps")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:parent/webApps"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:parent/webApps"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:parent/webApps")
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/v1beta1/:parent/webApps') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:parent/webApps";
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}}/v1beta1/:parent/webApps
http GET {{baseUrl}}/v1beta1/:parent/webApps
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v1beta1/:parent/webApps
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/webApps")! 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()
PATCH
firebase.projects.webApps.patch
{{baseUrl}}/v1beta1/:name
QUERY PARAMS
name
BODY json
{
"apiKeyId": "",
"appId": "",
"appUrls": [],
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:name");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/patch "{{baseUrl}}/v1beta1/:name" {:content-type :json
:form-params {:apiKeyId ""
:appId ""
:appUrls []
:displayName ""
:etag ""
:expireTime ""
:name ""
:projectId ""
:state ""
:webId ""}})
require "http/client"
url = "{{baseUrl}}/v1beta1/:name"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}"
response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Patch,
RequestUri = new Uri("{{baseUrl}}/v1beta1/:name"),
Content = new StringContent("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:name");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:name"
payload := strings.NewReader("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PATCH /baseUrl/v1beta1/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 170
{
"apiKeyId": "",
"appId": "",
"appUrls": [],
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v1beta1/:name")
.setHeader("content-type", "application/json")
.setBody("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:name"))
.header("content-type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1beta1/:name")
.patch(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v1beta1/:name")
.header("content-type", "application/json")
.body("{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}")
.asString();
const data = JSON.stringify({
apiKeyId: '',
appId: '',
appUrls: [],
displayName: '',
etag: '',
expireTime: '',
name: '',
projectId: '',
state: '',
webId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PATCH', '{{baseUrl}}/v1beta1/:name');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PATCH',
url: '{{baseUrl}}/v1beta1/:name',
headers: {'content-type': 'application/json'},
data: {
apiKeyId: '',
appId: '',
appUrls: [],
displayName: '',
etag: '',
expireTime: '',
name: '',
projectId: '',
state: '',
webId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:name';
const options = {
method: 'PATCH',
headers: {'content-type': 'application/json'},
body: '{"apiKeyId":"","appId":"","appUrls":[],"displayName":"","etag":"","expireTime":"","name":"","projectId":"","state":"","webId":""}'
};
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}}/v1beta1/:name',
method: 'PATCH',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "apiKeyId": "",\n "appId": "",\n "appUrls": [],\n "displayName": "",\n "etag": "",\n "expireTime": "",\n "name": "",\n "projectId": "",\n "state": "",\n "webId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:name")
.patch(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PATCH',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:name',
headers: {
'content-type': 'application/json'
}
};
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.write(JSON.stringify({
apiKeyId: '',
appId: '',
appUrls: [],
displayName: '',
etag: '',
expireTime: '',
name: '',
projectId: '',
state: '',
webId: ''
}));
req.end();
const request = require('request');
const options = {
method: 'PATCH',
url: '{{baseUrl}}/v1beta1/:name',
headers: {'content-type': 'application/json'},
body: {
apiKeyId: '',
appId: '',
appUrls: [],
displayName: '',
etag: '',
expireTime: '',
name: '',
projectId: '',
state: '',
webId: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PATCH', '{{baseUrl}}/v1beta1/:name');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
apiKeyId: '',
appId: '',
appUrls: [],
displayName: '',
etag: '',
expireTime: '',
name: '',
projectId: '',
state: '',
webId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PATCH',
url: '{{baseUrl}}/v1beta1/:name',
headers: {'content-type': 'application/json'},
data: {
apiKeyId: '',
appId: '',
appUrls: [],
displayName: '',
etag: '',
expireTime: '',
name: '',
projectId: '',
state: '',
webId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:name';
const options = {
method: 'PATCH',
headers: {'content-type': 'application/json'},
body: '{"apiKeyId":"","appId":"","appUrls":[],"displayName":"","etag":"","expireTime":"","name":"","projectId":"","state":"","webId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"apiKeyId": @"",
@"appId": @"",
@"appUrls": @[ ],
@"displayName": @"",
@"etag": @"",
@"expireTime": @"",
@"name": @"",
@"projectId": @"",
@"state": @"",
@"webId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:name"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
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}}/v1beta1/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}" in
Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:name",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'apiKeyId' => '',
'appId' => '',
'appUrls' => [
],
'displayName' => '',
'etag' => '',
'expireTime' => '',
'name' => '',
'projectId' => '',
'state' => '',
'webId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PATCH', '{{baseUrl}}/v1beta1/:name', [
'body' => '{
"apiKeyId": "",
"appId": "",
"appUrls": [],
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:name');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'apiKeyId' => '',
'appId' => '',
'appUrls' => [
],
'displayName' => '',
'etag' => '',
'expireTime' => '',
'name' => '',
'projectId' => '',
'state' => '',
'webId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'apiKeyId' => '',
'appId' => '',
'appUrls' => [
],
'displayName' => '',
'etag' => '',
'expireTime' => '',
'name' => '',
'projectId' => '',
'state' => '',
'webId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:name');
$request->setRequestMethod('PATCH');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
"apiKeyId": "",
"appId": "",
"appUrls": [],
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
"apiKeyId": "",
"appId": "",
"appUrls": [],
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("PATCH", "/baseUrl/v1beta1/:name", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:name"
payload = {
"apiKeyId": "",
"appId": "",
"appUrls": [],
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
}
headers = {"content-type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:name"
payload <- "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}"
encode <- "json"
response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:name")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.patch('/baseUrl/v1beta1/:name') do |req|
req.body = "{\n \"apiKeyId\": \"\",\n \"appId\": \"\",\n \"appUrls\": [],\n \"displayName\": \"\",\n \"etag\": \"\",\n \"expireTime\": \"\",\n \"name\": \"\",\n \"projectId\": \"\",\n \"state\": \"\",\n \"webId\": \"\"\n}"
end
puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:name";
let payload = json!({
"apiKeyId": "",
"appId": "",
"appUrls": (),
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PATCH \
--url {{baseUrl}}/v1beta1/:name \
--header 'content-type: application/json' \
--data '{
"apiKeyId": "",
"appId": "",
"appUrls": [],
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
}'
echo '{
"apiKeyId": "",
"appId": "",
"appUrls": [],
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
}' | \
http PATCH {{baseUrl}}/v1beta1/:name \
content-type:application/json
wget --quiet \
--method PATCH \
--header 'content-type: application/json' \
--body-data '{\n "apiKeyId": "",\n "appId": "",\n "appUrls": [],\n "displayName": "",\n "etag": "",\n "expireTime": "",\n "name": "",\n "projectId": "",\n "state": "",\n "webId": ""\n}' \
--output-document \
- {{baseUrl}}/v1beta1/:name
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"apiKeyId": "",
"appId": "",
"appUrls": [],
"displayName": "",
"etag": "",
"expireTime": "",
"name": "",
"projectId": "",
"state": "",
"webId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:name")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
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
firebase.projects.webApps.remove
{{baseUrl}}/v1beta1/:name:remove
QUERY PARAMS
name
BODY json
{
"allowMissing": false,
"etag": "",
"immediate": false,
"validateOnly": false
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:name:remove");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"allowMissing\": false,\n \"etag\": \"\",\n \"immediate\": false,\n \"validateOnly\": false\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1beta1/:name:remove" {:content-type :json
:form-params {:allowMissing false
:etag ""
:immediate false
:validateOnly false}})
require "http/client"
url = "{{baseUrl}}/v1beta1/:name:remove"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"allowMissing\": false,\n \"etag\": \"\",\n \"immediate\": false,\n \"validateOnly\": false\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1beta1/:name:remove"),
Content = new StringContent("{\n \"allowMissing\": false,\n \"etag\": \"\",\n \"immediate\": false,\n \"validateOnly\": false\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:name:remove");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"allowMissing\": false,\n \"etag\": \"\",\n \"immediate\": false,\n \"validateOnly\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:name:remove"
payload := strings.NewReader("{\n \"allowMissing\": false,\n \"etag\": \"\",\n \"immediate\": false,\n \"validateOnly\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1beta1/:name:remove HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 88
{
"allowMissing": false,
"etag": "",
"immediate": false,
"validateOnly": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:name:remove")
.setHeader("content-type", "application/json")
.setBody("{\n \"allowMissing\": false,\n \"etag\": \"\",\n \"immediate\": false,\n \"validateOnly\": false\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:name:remove"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"allowMissing\": false,\n \"etag\": \"\",\n \"immediate\": false,\n \"validateOnly\": false\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"allowMissing\": false,\n \"etag\": \"\",\n \"immediate\": false,\n \"validateOnly\": false\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1beta1/:name:remove")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:name:remove")
.header("content-type", "application/json")
.body("{\n \"allowMissing\": false,\n \"etag\": \"\",\n \"immediate\": false,\n \"validateOnly\": false\n}")
.asString();
const data = JSON.stringify({
allowMissing: false,
etag: '',
immediate: false,
validateOnly: false
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1beta1/:name:remove');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:name:remove',
headers: {'content-type': 'application/json'},
data: {allowMissing: false, etag: '', immediate: false, validateOnly: false}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:name:remove';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"allowMissing":false,"etag":"","immediate":false,"validateOnly":false}'
};
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}}/v1beta1/:name:remove',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "allowMissing": false,\n "etag": "",\n "immediate": false,\n "validateOnly": false\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"allowMissing\": false,\n \"etag\": \"\",\n \"immediate\": false,\n \"validateOnly\": false\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:name:remove")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:name:remove',
headers: {
'content-type': 'application/json'
}
};
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.write(JSON.stringify({allowMissing: false, etag: '', immediate: false, validateOnly: false}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:name:remove',
headers: {'content-type': 'application/json'},
body: {allowMissing: false, etag: '', immediate: false, validateOnly: false},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1beta1/:name:remove');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
allowMissing: false,
etag: '',
immediate: false,
validateOnly: false
});
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}}/v1beta1/:name:remove',
headers: {'content-type': 'application/json'},
data: {allowMissing: false, etag: '', immediate: false, validateOnly: false}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:name:remove';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"allowMissing":false,"etag":"","immediate":false,"validateOnly":false}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"allowMissing": @NO,
@"etag": @"",
@"immediate": @NO,
@"validateOnly": @NO };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:name:remove"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
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}}/v1beta1/:name:remove" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"allowMissing\": false,\n \"etag\": \"\",\n \"immediate\": false,\n \"validateOnly\": false\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:name:remove",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'allowMissing' => null,
'etag' => '',
'immediate' => null,
'validateOnly' => null
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1beta1/:name:remove', [
'body' => '{
"allowMissing": false,
"etag": "",
"immediate": false,
"validateOnly": false
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:name:remove');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'allowMissing' => null,
'etag' => '',
'immediate' => null,
'validateOnly' => null
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'allowMissing' => null,
'etag' => '',
'immediate' => null,
'validateOnly' => null
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:name:remove');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:name:remove' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"allowMissing": false,
"etag": "",
"immediate": false,
"validateOnly": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:name:remove' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"allowMissing": false,
"etag": "",
"immediate": false,
"validateOnly": false
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"allowMissing\": false,\n \"etag\": \"\",\n \"immediate\": false,\n \"validateOnly\": false\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1beta1/:name:remove", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:name:remove"
payload = {
"allowMissing": False,
"etag": "",
"immediate": False,
"validateOnly": False
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:name:remove"
payload <- "{\n \"allowMissing\": false,\n \"etag\": \"\",\n \"immediate\": false,\n \"validateOnly\": false\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:name:remove")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"allowMissing\": false,\n \"etag\": \"\",\n \"immediate\": false,\n \"validateOnly\": false\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1beta1/:name:remove') do |req|
req.body = "{\n \"allowMissing\": false,\n \"etag\": \"\",\n \"immediate\": false,\n \"validateOnly\": false\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:name:remove";
let payload = json!({
"allowMissing": false,
"etag": "",
"immediate": false,
"validateOnly": false
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1beta1/:name:remove \
--header 'content-type: application/json' \
--data '{
"allowMissing": false,
"etag": "",
"immediate": false,
"validateOnly": false
}'
echo '{
"allowMissing": false,
"etag": "",
"immediate": false,
"validateOnly": false
}' | \
http POST {{baseUrl}}/v1beta1/:name:remove \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "allowMissing": false,\n "etag": "",\n "immediate": false,\n "validateOnly": false\n}' \
--output-document \
- {{baseUrl}}/v1beta1/:name:remove
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"allowMissing": false,
"etag": "",
"immediate": false,
"validateOnly": false
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:name:remove")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
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
firebase.projects.webApps.undelete
{{baseUrl}}/v1beta1/:name:undelete
QUERY PARAMS
name
BODY json
{
"etag": "",
"validateOnly": false
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:name:undelete");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"etag\": \"\",\n \"validateOnly\": false\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1beta1/:name:undelete" {:content-type :json
:form-params {:etag ""
:validateOnly false}})
require "http/client"
url = "{{baseUrl}}/v1beta1/:name:undelete"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"etag\": \"\",\n \"validateOnly\": false\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1beta1/:name:undelete"),
Content = new StringContent("{\n \"etag\": \"\",\n \"validateOnly\": false\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:name:undelete");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"etag\": \"\",\n \"validateOnly\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1beta1/:name:undelete"
payload := strings.NewReader("{\n \"etag\": \"\",\n \"validateOnly\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1beta1/:name:undelete HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 41
{
"etag": "",
"validateOnly": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:name:undelete")
.setHeader("content-type", "application/json")
.setBody("{\n \"etag\": \"\",\n \"validateOnly\": false\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1beta1/:name:undelete"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"etag\": \"\",\n \"validateOnly\": false\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"etag\": \"\",\n \"validateOnly\": false\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1beta1/:name:undelete")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:name:undelete")
.header("content-type", "application/json")
.body("{\n \"etag\": \"\",\n \"validateOnly\": false\n}")
.asString();
const data = JSON.stringify({
etag: '',
validateOnly: false
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1beta1/:name:undelete');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:name:undelete',
headers: {'content-type': 'application/json'},
data: {etag: '', validateOnly: false}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:name:undelete';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"etag":"","validateOnly":false}'
};
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}}/v1beta1/:name:undelete',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "etag": "",\n "validateOnly": false\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"etag\": \"\",\n \"validateOnly\": false\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1beta1/:name:undelete")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1beta1/:name:undelete',
headers: {
'content-type': 'application/json'
}
};
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.write(JSON.stringify({etag: '', validateOnly: false}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1beta1/:name:undelete',
headers: {'content-type': 'application/json'},
body: {etag: '', validateOnly: false},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1beta1/:name:undelete');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
etag: '',
validateOnly: false
});
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}}/v1beta1/:name:undelete',
headers: {'content-type': 'application/json'},
data: {etag: '', validateOnly: false}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1beta1/:name:undelete';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"etag":"","validateOnly":false}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"etag": @"",
@"validateOnly": @NO };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:name:undelete"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
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}}/v1beta1/:name:undelete" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"etag\": \"\",\n \"validateOnly\": false\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1beta1/:name:undelete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'etag' => '',
'validateOnly' => null
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1beta1/:name:undelete', [
'body' => '{
"etag": "",
"validateOnly": false
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:name:undelete');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'etag' => '',
'validateOnly' => null
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'etag' => '',
'validateOnly' => null
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:name:undelete');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:name:undelete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"etag": "",
"validateOnly": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:name:undelete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"etag": "",
"validateOnly": false
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"etag\": \"\",\n \"validateOnly\": false\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v1beta1/:name:undelete", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1beta1/:name:undelete"
payload = {
"etag": "",
"validateOnly": False
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1beta1/:name:undelete"
payload <- "{\n \"etag\": \"\",\n \"validateOnly\": false\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1beta1/:name:undelete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"etag\": \"\",\n \"validateOnly\": false\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1beta1/:name:undelete') do |req|
req.body = "{\n \"etag\": \"\",\n \"validateOnly\": false\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1beta1/:name:undelete";
let payload = json!({
"etag": "",
"validateOnly": false
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1beta1/:name:undelete \
--header 'content-type: application/json' \
--data '{
"etag": "",
"validateOnly": false
}'
echo '{
"etag": "",
"validateOnly": false
}' | \
http POST {{baseUrl}}/v1beta1/:name:undelete \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "etag": "",\n "validateOnly": false\n}' \
--output-document \
- {{baseUrl}}/v1beta1/:name:undelete
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"etag": "",
"validateOnly": false
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:name:undelete")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
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()