How to access datahug API via HTTP Authentication?

Chris

In Datahug's documentation, it states, 'Authentication is performed using HTTP Basic Authentication - A Datahug username and password will be required in order to access the API.'

As a result, I've tried the below (with my username and password defined)

import requests
from requests.auth import HTTPBasicAuth

url = 'https://api.datahug.com/Contact/'
l = requests.get(url,auth=HTTPBasicAuth(username,password)

But I receive the following error:

<Response [401]>

Am I doing something wrong here?

I've also tried the following:

import requests
from requests.auth import HTTPBasicAuth

url = "https://api.datahug.com/Contact/[email protected]"
l = requests.get(url,auth=(username,password))
Kevin Brady

I've tracked the issue down to the Datahug Edition your account was configured to. It was CRM Only which at the moment doesn't allow API access. I've changed the account Edition to Full which will also give you access to the web app and you will also be able to make api calls.

You should now get a valid response when you make API calls.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

HTTP authentication logout via PHP

分類Dev

HTTP authentication logout via PHP

分類Dev

How API gateway validates access token via introspection

分類Dev

MDrivenServer on-premises - access via http, not https

分類Dev

How to access google sheets without authentication?

分類Dev

How to prevent access via reflection?

分類Dev

How can I access the "Your Books" account provided in QBOA via the API?

分類Dev

Exporting and importing Grafana Dashboard via HTTP API

分類Dev

How to access a Jackrabbit Oak repository via WebDAV?

分類Dev

How to access json file via chrome

分類Dev

How to access to synchronized folders via BitTorrent Sync?

分類Dev

How to retrieve binary data via HTTP in Angular?

分類Dev

How to delete specific HTTP authentication credentials from Safari (for Windows)?

分類Dev

How to configure basic authentication in tomcat 8.5? HTTP Error 401

分類Dev

Cannot get access to Google Calendar API via Service Account

分類Dev

AngularJS $http, CORS and http authentication

分類Dev

Access headers in AWS API Gateway using HTTP Proxy?

分類Dev

"Error 403: access_denied" from Google authentication web api despite google account being owner

分類Dev

How to add "Tags" to mailchimp subscriber via the api

分類Dev

How to share only an image via Linkedin API

分類Dev

How to delete Keycloak realm via REST API

分類Dev

How to download styles via Chrome debugger API

分類Dev

How to upload video via the VK api

分類Dev

Facebook authentication via android app

分類Dev

How can I access a docker container via ip address

分類Dev

How can I access Data in Google Storage via Presto?

分類Dev

How to change the order of open "tabbed forms" in MS Access via VBA

分類Dev

How to access a site via a headless driver without being denied permission

分類Dev

how to access wsl localhost in browser when connecting via SSH?

Related 関連記事

  1. 1

    HTTP authentication logout via PHP

  2. 2

    HTTP authentication logout via PHP

  3. 3

    How API gateway validates access token via introspection

  4. 4

    MDrivenServer on-premises - access via http, not https

  5. 5

    How to access google sheets without authentication?

  6. 6

    How to prevent access via reflection?

  7. 7

    How can I access the "Your Books" account provided in QBOA via the API?

  8. 8

    Exporting and importing Grafana Dashboard via HTTP API

  9. 9

    How to access a Jackrabbit Oak repository via WebDAV?

  10. 10

    How to access json file via chrome

  11. 11

    How to access to synchronized folders via BitTorrent Sync?

  12. 12

    How to retrieve binary data via HTTP in Angular?

  13. 13

    How to delete specific HTTP authentication credentials from Safari (for Windows)?

  14. 14

    How to configure basic authentication in tomcat 8.5? HTTP Error 401

  15. 15

    Cannot get access to Google Calendar API via Service Account

  16. 16

    AngularJS $http, CORS and http authentication

  17. 17

    Access headers in AWS API Gateway using HTTP Proxy?

  18. 18

    "Error 403: access_denied" from Google authentication web api despite google account being owner

  19. 19

    How to add "Tags" to mailchimp subscriber via the api

  20. 20

    How to share only an image via Linkedin API

  21. 21

    How to delete Keycloak realm via REST API

  22. 22

    How to download styles via Chrome debugger API

  23. 23

    How to upload video via the VK api

  24. 24

    Facebook authentication via android app

  25. 25

    How can I access a docker container via ip address

  26. 26

    How can I access Data in Google Storage via Presto?

  27. 27

    How to change the order of open "tabbed forms" in MS Access via VBA

  28. 28

    How to access a site via a headless driver without being denied permission

  29. 29

    how to access wsl localhost in browser when connecting via SSH?

ホットタグ

アーカイブ