twitter_ads_v2.http module

Container for all HTTP request and response logic for the SDK.

class twitter_ads_v2.http.Request(client, method, resource, **kwargs)[source]

Bases: object

Generic container for all API requests.

property client
property method
property options
perform()[source]
property resource
class twitter_ads_v2.http.Response(request_data, client, code, headers, **kwargs)[source]

Bases: object

Generic container for API responses.

property body
property code
property error
property headers
next()[source]

Returns the next item in the cursor.

property raw_body