Unsupported API method with SDK

Context

In terms of quantity, all APIs > Publicly documented APIs > SDK Implemented.

Example using an unsupported API with SDK

If there is an API that is not yet officially supported in SDK you can still use it. As an example here we add the /api/v1/job/list endpoint and print the response text.

def list_jobs_by_project(project):
	endpoint = "/api/v1/job/list"
	request_json_body = {"metadata": {
        "limit": 100,
        "status": "All",
			  "project_string_id": project.project_string_id
    }}
	response = project.session.post(
		project.host + endpoint, json=request_json_body)
	project.handle_errors(response)
	print(response.text)

This includes the auth.

Alternative Auth (e.g. Not Python SDK)

https://diffgram.readme.io/reference/authentication#manual-authentication-with-http-headers