mgnipy.V2.custom_endpoint module

mgnipy.V2.custom_endpoint module#

async mgnipy.V2.custom_endpoint.asyncio(url, *, client)[source]#

Download raw content asynchronously from a custom absolute URL.

Parameters:
Return type:

Response[bytes ]

Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.:

  • httpx.TimeoutException – If the request takes longer than Client.timeout.:

async mgnipy.V2.custom_endpoint.asyncio_detailed(url, *, client)[source]#

Download raw content asynchronously from a custom absolute URL.

Parameters:
Return type:

Response[bytes ]

Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.:

  • httpx.TimeoutException – If the request takes longer than Client.timeout.:

mgnipy.V2.custom_endpoint.sync(url, *, client)[source]#

Custom Endpoint

Download raw content from a custom absolute URL.

Parameters:
Return type:

Response[bytes ]

Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.:

  • httpx.TimeoutException – If the request takes longer than Client.timeout.:

mgnipy.V2.custom_endpoint.sync_detailed(url, *, client)[source]#

Download raw content from a custom absolute URL.

Parameters:
Return type:

Response[bytes ]

Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.:

  • httpx.TimeoutException – If the request takes longer than Client.timeout.: