How to Authenticate Jive Rest API Using Add On

A jive instance support Basic and Oauth 2.0 for authentication. To access jive first register as a client with jive and install a add on. Using installed add on get client id and secret key.

Let we explain procedure step by step. For this we use jive sandbox account.

Step 1: Login in you jive sandbox account. Than use this Jive Oauth 2.0 Client Builder link to create an Add on.

Enter your server redirect url where you can receive the auth code. Mention the add on title and description and must upload a icon for the add on. After this download the Add on.

jive oauth builder link

Step 2: In your sandbox jive on account. Click on Add on option to upload the downloaded Add on. Upload you package.

create jive add on

After successfully installed add on you can get Client id and Secret key. Use this credential to access the jive on rest api.

jive on client and secret id

Note: To access jive instance for third party, must Enable the External Contributors option for particular add on.

Step 3: Now we can go for Authorization code. You need to mention Add on redirect url, which you use while creating an add on and Client Id. Use this url to get the auth code:

https://client.application.com/oauth2/redirect?code=

Use below PHP file to get the authorize code from jive rest api v3

When you run above code, redirect to jive login page. Use sandbox login access and allow the app.

Step 4: After getting auth code, go for access token. Use this curl method to get access token.

curl -u ‘<CLIENT_ID>:<CLIENT_SECRET>’ -d ‘code <AUTHZ_CODE>&grant_type=authorization_code&client_id=<CLIENT_ID>’ https://<JIVE-
URL>/oauth2/token

Check below curl php code for access token. Use your add on client id and secret key here.

After follow above steps you can get authorization for Jive Rest Api v3. Now you can use access token for access jive api method. Their are many People, content and document etc. method available.

Jive rest api has bearer type of access token. Pass access token and content type in header php curl code for particular api call.

Recommended Posts For You

About Harish

I am professional web developer and blogger. Use this blog to share own api and other web development experience with you. I do accept paid work. Write to me at - [email protected]

View all posts by Harish

Leave a Comment

Your email address will not be published. Required fields are marked *