thoughtspot / thoughtspot_rest_api_v1_python

Python implementations of ThoughtSpot REST APIs V1 and V2
Other
3 stars 6 forks source link

Update TSRestAPIV1.session_auth_token with correct Accept header #10

Closed kingcowman closed 1 year ago

kingcowman commented 1 year ago

The endpoint v1/session/auth/token requires that the Accept header include text/plain.

If it is not present a 406 will be returned with no details explaining the failure.

This PR overrides the Accept header for only the session_auth_token method so end user clients do not have to do this via the request session object instead.

bryanthowell-ts commented 1 year ago

The fix is incorporated into the 1.5.0 release which is now available