curl --request GET \
--url 'https://api.hubapi.com/crm/v3/extensions/cards/appId?hapikey=YOUR_HUBSPOT_API_KEY'\
--header 'accept: application/json'
var request = require("request");
var options = {
method: 'GET',
url: 'https://api.hubapi.com/crm/v3/extensions/cards/appId',
qs: {
hapikey: 'YOUR_HUBSPOT_API_KEY'
},
headers: {
accept: 'application/json'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array( CURLOPT_URL =------> "https://api.hubapi.com/crm/v3/extensions/cards/appId?hapikey=YOUR_HUBSPOT_API_KEY",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array( "accept: application/json" ),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}?>
import requests
url = "https://api.hubapi.com/crm/v3/extensions/cards/appId"
querystring = {"hapikey":"YOUR_HUBSPOT_API_KEY"}
headers = {'accept': 'application/json'}
response = requests.request("GET", url, headers=headers, params=querystring)
print(response.text)
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.hubapi.com/crm/v3/extensions/cards/appId?hapikey=YOUR_HUBSPOT_API_KEY")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
response = http.request(request)
puts response.read_body