video_curation.google_api_helper

Functions to help deal with google_api.

video_curation.google_api_helper.get_api_request_dict(properties)[source]

Build a resource based on a list of properties given as key-value pairs. Leave properties with empty values out of the inserted resource.

Parameters:properties – a dict
Returns:
video_curation.google_api_helper.get_credentials(service_account_file=None, token_file_path=None, client_secrets_file=None, scopes=None)[source]

Note: Passing service_account_file does not seem to work as intended. :param service_account_file: :param token_file_path: A json file containing an access token (from a prior successful oauth). :param client_secrets_file: :param scopes: :return:

video_curation.google_api_helper.get_service_from_token_file_path(token_file_path)[source]

Authenticate and get api service object.

Parameters:token_file_path – A json file containing an access token (from a prior successful oauth).
Returns:
video_curation.google_api_helper.perform_oauth(client_secrets_file, scopes, token_file_path=None)[source]

Do interactive oauth.