Support | Zephyr



Sample - Create JWT Token for a ZAPI Cloud API

Created on

Problem : How to Generate a JWT Token

Solution :

Sample code is provided for reference

  • Code uses the ZAPI CLOUD Url shared via email for a JIRA cloud instance , Access Key and Secret Key of a Jira user.
  • ZAPI CLOUD API to which the JWT token has to be generated and Jira userName
  • Initializes the ZFJCloudRestClient . ZFJCloudRestClient sample is provided here.
  • Gets the JwtGenerator from the client
  • Generate JWT token using the generateJWT method
  • Prints the final URL and JWT token which can be used with any browser REST client to make request.

Refer the link to download the sample 

ZAPI Cloud Interactive documentation: http://docs.zfjcloud.apiary.io/


Was this article helpful?
0 out of 3 found this helpful
Have more questions? Submit a request
Powered by Zendesk