Hi
I created an api key and I use
sd = ServiceDesk(
url=server,
username=email,
password=api_key)
the code to authenticate. In browser I use the same email and my own password
I then try and call these 3 calls
1. print(sd.get_info())
2. print(sd.get_service_desks())
3. print(sd.get_service_desk_by_id('1111111'))
getting back
1. {'version': '971389ce99a7c7673bf7b9fe2a7083d9109e34c2', 'platformVersion': '971389ce99a7c7673bf7b9fe2a7083d9109e34c2', 'buildDate': {'iso8601': '2019-09-12T16:00:57+1000', 'jira': '2019-09-12T07:00:57.000+0100', 'friendly': 'Yesterday 4:00 PM', 'epochMillis': 1568268057000}, 'buildChangeSet': '971389ce99a7c7673bf7b9fe2a7083d9109e34c2', 'isLicensedForUse': True, '_links': {'self': 'http://xxxxx.atlassian.net'}}
2. None
3. {'message': 'Client must be authenticated to access this resource.', 'status-code': 401}
In the browser calling the end point for service desks with same email and password i.e.
GET /rest/servicedeskapi/servicedesk I see all the services desks
Can anyone help with this? ie the discrepency and/or rights issues
Hi In the end it was my token which was bad. I regenerated and it works meaning that the API does work for jira cloud
I believe that the python packages you are using works only on server versions. I might be wrong.
Btw even though you put xxxx in your url. Link still points to your site. Thought you might want to update it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks if someone can confirm that this is right will mark as accepted answer and thanks for pointing out on the url.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.