Get Plugin Connection
curl --request GET \
--url https://use.hoop.dev/api/plugins/{name}/conn/{id}import requests
url = "https://use.hoop.dev/api/plugins/{name}/conn/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://use.hoop.dev/api/plugins/{name}/conn/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://use.hoop.dev/api/plugins/{name}/conn/{id}",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://use.hoop.dev/api/plugins/{name}/conn/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://use.hoop.dev/api/plugins/{name}/conn/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://use.hoop.dev/api/plugins/{name}/conn/{id}")
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{
"config": [
"EMAIL_ADDRESS",
"URL"
],
"connection_id": "B702C63C-E6EB-46BB-9D1E-90EA077E4582",
"id": "B39D74FA-EF2E-4B0C-A28A-D382B18043C6",
"plugin_id": "review",
"updated_at": "2024-07-25T19:36:41Z"
}{
"message": "the error description"
}{
"message": "the error description"
}Plugins
Get Plugin Connection
Get a plugin connection resource
GET
/
plugins
/
{name}
/
conn
/
{id}
Get Plugin Connection
curl --request GET \
--url https://use.hoop.dev/api/plugins/{name}/conn/{id}import requests
url = "https://use.hoop.dev/api/plugins/{name}/conn/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://use.hoop.dev/api/plugins/{name}/conn/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://use.hoop.dev/api/plugins/{name}/conn/{id}",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://use.hoop.dev/api/plugins/{name}/conn/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://use.hoop.dev/api/plugins/{name}/conn/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://use.hoop.dev/api/plugins/{name}/conn/{id}")
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{
"config": [
"EMAIL_ADDRESS",
"URL"
],
"connection_id": "B702C63C-E6EB-46BB-9D1E-90EA077E4582",
"id": "B39D74FA-EF2E-4B0C-A28A-D382B18043C6",
"plugin_id": "review",
"updated_at": "2024-07-25T19:36:41Z"
}{
"message": "the error description"
}{
"message": "the error description"
}Response
OK
The configuration of the plugin connection, the content depends on the plugin type
Example:
["EMAIL_ADDRESS", "URL"]
The connection ID reference
Example:
"B702C63C-E6EB-46BB-9D1E-90EA077E4582"
The resource ID
Example:
"B39D74FA-EF2E-4B0C-A28A-D382B18043C6"
The plugin id to create associations
Example:
"review"
The time when this resource was updated
Example:
"2024-07-25T19:36:41Z"
Was this page helpful?