Skip to content

Latest commit

 

History

History
151 lines (103 loc) · 4.03 KB

UploadApi.md

File metadata and controls

151 lines (103 loc) · 4.03 KB

audioshake.UploadApi

All URIs are relative to https://groovy.audioshake.ai

Method HTTP request Description
upload_audio_link_post POST /upload/audio-link Create a new asset from a file link.
upload_link_post POST /upload/link Create a new asset from a file link.
upload_post POST /upload/ Create a new asset.

upload_audio_link_post

InlineResponse2XX1 upload_audio_link_post(body)

Create a new asset from a file link.

Example

from __future__ import print_function
import time
import audioshake
from audioshake.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = audioshake.UploadApi(audioshake.ApiClient(configuration))
body = audioshake.UploadAudiolinkBody() # UploadAudiolinkBody |

try:
    # Create a new asset from a file link.
    api_response = api_instance.upload_audio_link_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UploadApi->upload_audio_link_post: %s\n" % e)

Parameters

Name Type Description Notes
body UploadAudiolinkBody

Return type

InlineResponse2XX1

Authorization

token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

upload_link_post

InlineResponse2XX1 upload_link_post(body)

Create a new asset from a file link.

Example

from __future__ import print_function
import time
import audioshake
from audioshake.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = audioshake.UploadApi(audioshake.ApiClient(configuration))
body = audioshake.UploadLinkBody() # UploadLinkBody |

try:
    # Create a new asset from a file link.
    api_response = api_instance.upload_link_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UploadApi->upload_link_post: %s\n" % e)

Parameters

Name Type Description Notes
body UploadLinkBody

Return type

InlineResponse2XX1

Authorization

token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

upload_post

InlineResponse2XX1 upload_post(file)

Create a new asset.

Example

from __future__ import print_function
import time
import audioshake
from audioshake.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = audioshake.UploadApi(audioshake.ApiClient(configuration))
file = '/path/to/file' # file |

try:
    # Create a new asset.
    api_response = api_instance.upload_post(file)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UploadApi->upload_post: %s\n" % e)

Parameters

Name Type Description Notes
file file

Return type

InlineResponse2XX1

Authorization

token

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]