Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 2.32 KB

SharesApi.md

File metadata and controls

65 lines (47 loc) · 2.32 KB

unity_cloud_build_api.SharesApi

All URIs are relative to /api/v1

Method HTTP request Description
get_share_metadata GET /shares/{shareid} Get details on shared build including download link

get_share_metadata

object get_share_metadata(shareid, include=include)

Get details on shared build including download link

This is an endpoint accessible without an api key that provides information about a specific build including download links. A shareid is generated by POSTing to a <a href="#!/builds/createShare">build's share endpoint.

Example

from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'# Configure HTTP basic authorization: filetoken
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = unity_cloud_build_api.SharesApi(unity_cloud_build_api.ApiClient(configuration))
shareid = 'shareid_example' # str | 
include = 'include_example' # str | Extra fields to include in the response (optional)

try:
    # Get details on shared build including download link
    api_response = api_instance.get_share_metadata(shareid, include=include)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SharesApi->get_share_metadata: %s\n" % e)

Parameters

Name Type Description Notes
shareid str
include str Extra fields to include in the response [optional]

Return type

object

Authorization

apikey, filetoken

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/plain, text/html, text/csv

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