JITBIT Helpdesk In SharePoint

What is JITBIT helpdesk?

JITBIT is a complete web based helpdesk software to track and manage your support ticket, also integrated with your email system. Some of the API below.

  • Manage Tickets(Create/Update)
  • Manage Users(Create/Update)
  • Manage Articles
  • Custom Fields

Let’s get started to create base 64 token to pass the authorization header to fetch the results from JITBIT

Code

  1. var authheader = function(username, password) {  
  2.     return "Basic " + btoa(username + ":" + password);  
  3. }  
Btoa – helps to encode a string into baase-64

 

  1. var auth = authheader(‘admin’, 'admin’);  
  2.         Console.log(auth); You can pass into API call authorization header like this "headers": {  
  3.             "authorization": auth //encoded values from the above script  
  4.         },  

Full Code

  1. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>  
  2. <script>  
  3.     var authheader = function(username, password) {  
  4.         return "Basic " + btoa(username + ":" + password);  
  5.     }  
  6.     var auth = authheader(‘admin’, 'admin’);  
  7.             console.log(auth);  
  8. </script>  

Result

 

API references https://www.jitbit.com/helpdesk/helpdesk-api/

This blog helps to authenticate the API to your application to fetch the information