Discussions

Ask a Question
Back to All

API Google Oauth

  1. Is there a way to authenticate to the talks api using google oauth if so, whats the code snippet for it (python)
  2. If there isnt, does the free version authenticate the api ?
    Because this isnt letting me in with the my free username and password.
    import requests
    url = "https://api.d-id.com/talks"
    payload = {
    "source_url": "https://d-id-public-bucket.s3.us-west-2.amazonaws.com/alice.jpg",
    "script": {
    "type": "text",
    "subtitles": "false",
    "provider": {
    "type": "microsoft",
    "voice_id": "Sara"
    },
    "input": "Making videos is easy with D-ID"
    },
    "config": {
    "fluent": "false",
    "pad_audio": "0.0"
    }
    }
    headers = {
    "accept": "application/json",
    "content-type": "application/json",
    "authorization": "Basic bXN0MTk3NEBzYmNnbG9iYWwubmV0OlNhbHpidXJnMTYwIQ=="
    }
    response = requests.post(url, json=payload, headers=headers)
    print(response.text)