Health
This endpoint exists to verify the access and availability of the service
HTTP REQUEST
Development
GET: https://vendorintegration.growersedge.com/health
Responses
Code | Description |
---|---|
204 | No Content |
401 | Unauthorized |
500 | Internal Server Error |
502 | Bad Gateway |
Examples
from azure.identity import CertificateCredential
import requests
TENANT_ID = '***'
CLIENT_ID = '***'
CLIENT_SECRET = '***'
CLIENT_SCOPE = '***'
URL = 'https://vendorintegration.growersedge.com/Health'
def getHealth( token : str) :
response = requests.get(
URL,
headers = { 'Authorization' : f'Bearer {token}'}
)
if( response.status_code == 204 ):
return
else:
raise( Exception( 'API Call failed.') )
def main():
credential = ClientSecretCredential( TENANT_ID, CLIENT_ID, CLIENT_SECRET )
access_token = credential.get_token( CLIENT_SCOPE )
print (postDraw(access_token.token))
if __name__ == '__main__':
main()
curl --request GET \
--url https://vendorintegration.growersedge.com/health \
--header 'Authorization: Bearer <INSERT_TOKEN>'