Get Orders
GEThttps://api.test.pio.com/api/v1/orders
Get Orders
Request
Responses
- 200
- 401
- 403
- 422
Successful Response
`unauthorized`: Invalid or no credentials where supplied.
`could_not_validate_credentials`: Could not validate credentials.
`invalid_field`: One of the given field values is invalid for this response.
Authorization: oauth2
name: OAuth2AuthorizationCodeBearertype: oauth2flows: {
"authorizationCode": {
"scopes": {},
"authorizationUrl": "/raw/openapi_auth/authorize_form?client_id=<your-client-id>&redirect_uri=<your-redirect-url>",
"tokenUrl": "/api/v1/oauth/access_token"
}
}
- python
- php
- curl
- javascript
- nodejs
- ruby
- java
- csharp
- go
- c
- dart
- kotlin
- swift
- objective-c
- ocaml
- r
- powershell
- HTTP.CLIENT
- REQUESTS
import http.client
conn = http.client.HTTPSConnection("api.test.pio.com")
payload = ''
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer <TOKEN>'
}
conn.request("GET", "/api/v1/orders", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
ResponseClear