Lista los OKR
GET
/OKR/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/OKR/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/OKR/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/OKR/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/OKR/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/OKR/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/OKR/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/OKR/External/List") .get() .addHeader("Authorization", "Bearer <token>") .build()
val response = client.newCall(request).execute()curl --request GET \ --url https://api-prod.scoreplan.com.br/OKR/External/List \ --header 'Authorization: Bearer <token>'Authorizations
Sección titulada «Authorizations »Parameters
Sección titulada « Parameters »Query Parameters
Sección titulada «Query Parameters » StartDate
string
EndDate
string
Search
string
ResponsibleEmail
string
AuthorityEmail
string
Page
integer format: int32
RowsPerPage
integer format: int32
SortColumn
string
SortType
string
Responses
Sección titulada « Responses »OK
Media type application/json
object
totalRecords
required
integer format: int64
listRecords
required
Array<object> | null
object
internalCode
integer format: int64
clientCode
null | string
title
null | string
mission
null | string
premises
null | string
level
integer format: int32
responsible
null | string
authority
null | string
sectorId
null | integer format: int64
sector
null | string
weight
integer format: int32
startDate
null | string
endDate
null | string
confidence
null | integer format: int64
description
null | string
percentage
number format: double
calculation
integer format: int32
scale
integer format: int32
keyResults
Array<object> | null
object
title
null | string
description
null | string
situation
integer format: int64
responsible
null | string
weight
integer format: int32
measurements
Array<object> | null
object
typeOfMeasurement
integer format: int32
formOfMeasurement
integer format: int32
initialValue
number format: double
target
number format: double
weight
integer format: int32
percentage
number format: double
indicators
Array<object> | null
object
code
null | string
description
null | string
responsible
null | string
projects
Array<object> | null
object
code
null | integer format: int64
title
null | string
responsible
null | string
authority
null | string
iniciatives
Array<object> | null
object
title
null | string
actions
Array<object> | null
object
code
integer format: int64
title
null | string
startDate
null | string
endDate
null | string
responsible
null | string
authority
null | string
milestones
Array<object> | null
object
title
null | string
children
Array<object> | null
object
title
null | string
checked
boolean
Example generated
{ "totalRecords": 1, "listRecords": [ { "internalCode": 1, "clientCode": "example", "title": "example", "mission": "example", "premises": "example", "level": 1, "responsible": "example", "authority": "example", "sectorId": 1, "sector": "example", "weight": 1, "startDate": "example", "endDate": "example", "confidence": 1, "description": "example", "percentage": 1, "calculation": 1, "scale": 1, "keyResults": [ { "title": "example", "description": "example", "situation": 1, "responsible": "example", "weight": 1, "measurements": [ { "typeOfMeasurement": 1, "formOfMeasurement": 1, "initialValue": 1, "target": 1, "weight": 1 } ], "percentage": 1, "indicators": [ { "code": "example", "description": "example", "responsible": "example" } ], "projects": [ { "code": 1, "title": "example", "responsible": "example", "authority": "example" } ], "iniciatives": [ { "title": "example", "actions": [ { "code": 1, "title": "example", "startDate": "example", "endDate": "example", "responsible": "example", "authority": "example" } ] } ], "milestones": [ { "title": "example", "children": [ { "title": "example", "checked": true } ] } ] } ] } ]}