Lista sectores
GET
/Sectors/External/List
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://api-prod.scoreplan.com.br/Sectors/External/List"), Headers = { { "Authorization", "Bearer <token>" }, },};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://api-prod.scoreplan.com.br/Sectors/External/List"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://api-prod.scoreplan.com.br/Sectors/External/List")) .header("Authorization", "Bearer <token>") .method("GET", HttpRequest.BodyPublishers.noBody()) .build();HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());System.out.println(response.body());OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder() .url("https://api-prod.scoreplan.com.br/Sectors/External/List") .get() .addHeader("Authorization", "Bearer <token>") .build();
Response response = client.newCall(request).execute();import axios from 'axios';
const options = { method: 'GET', url: 'https://api-prod.scoreplan.com.br/Sectors/External/List', headers: {Authorization: 'Bearer <token>'}};
try { const { data } = await axios.request(options); console.log(data);} catch (error) { console.error(error);}const url = 'https://api-prod.scoreplan.com.br/Sectors/External/List';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}val client = OkHttpClient()
val request = Request.Builder() .url("https://api-prod.scoreplan.com.br/Sectors/External/List") .get() .addHeader("Authorization", "Bearer <token>") .build()
val response = client.newCall(request).execute()curl --request GET \ --url https://api-prod.scoreplan.com.br/Sectors/External/List \ --header 'Authorization: Bearer <token>'Authorizations
Sección titulada «Authorizations »Responses
Sección titulada « Responses »OK
Media type application/json
Array<object>
object
id
integer format: int64
description
null | string
active
boolean
companyId
integer format: int64
companyName
null | string
Example generated
[ { "id": 1, "description": "example", "active": true, "companyId": 1, "companyName": "example" }]