Python call to Audits API - "Couldn't authenticate you"



已于 2024年6月07日 发布

Why can't I get the Authentication to work

 

url = "https://sandboxdomain.zendesk.com/api/v2/tickets/"

url1 = "/audits.json"

 

response = requests.request(

    "GET",

    url+ticket[0]+url1,

    auth=('myuser@workdomain.com/token:{ZD provided token}',""),

    headers=headers

)


1

2

2 条评论

hi 1263082099389 , do you have some docs on python authentication? I tried your suggestion but didn't work
thanks!

0


Hi Ron, the auth parameter should read as follows:

auth=('myuser@workdomain.com/token', '{ZD provided token}')
 

0


登录再写评论。

找不到所需的内容?

新建帖子