Go / DocuSign Admin API / Returns the list of identity providers for the organization.
Back to Collection Items
// This example assumes the Chilkat API to have been previously unlocked.
// See Global_Ref.html">Global Unlock Sample for sample code.
http := chilkat.NewHttp()
var success bool
http.SetRequestHeader("Content-Type","application/json")
// Adds the "Authorization: Bearer {{accessToken}}" header.
http.SetAuthToken("{{accessToken}}")
http.SetRequestHeader("Accept","application/json")
sbResponseBody := chilkat.NewStringBuilder()
success = http.QuickGetSb("https://{{hostenv}}/Management/v2/organizations/{{organizationId}}/identity_providers",sbResponseBody)
if success == false {
fmt.Println(http.LastErrorText())
http.DisposeHttp()
sbResponseBody.DisposeStringBuilder()
return
}
fmt.Println("Response status code = ", http.LastStatus())
fmt.Println(*sbResponseBody.GetAsString())
http.DisposeHttp()
sbResponseBody.DisposeStringBuilder()
Curl Command
curl -X GET
-H "Accept: application/json"
-H "Content-Type: application/json"
-H "Authorization: Bearer {{accessToken}}"
https://{{hostenv}}/Management/v2/organizations/{{organizationId}}/identity_providers
Postman Collection Item JSON
{
"name": "Returns the list of identity providers for the organization.",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"url": {
"raw": "https://{{hostenv}}/Management/v2/organizations/{{organizationId}}/identity_providers",
"protocol": "https",
"host": [
"{{hostenv}}"
],
"path": [
"Management",
"v2",
"organizations",
"{{organizationId}}",
"identity_providers"
],
"variable": [
{
"key": "organizationId",
"value": "{{organizationId}}"
}
]
},
"description": "Required scopes: identity_provider_read"
},
"response": [
]
}