LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Authenticate api

Hi,

I was given an API to extract info from it. But before I could use, I need to authenticate it. Can anybody show me how to do it? The expected response would be a token in json format. Thx.

0 Kudos
Message 1 of 4
(87 Views)

Too vague,

  1. Is it a REST API?
  2. Do you use native LV REST API or other libraries?
  3. Your API documentation will define how to authenticate (typically it will be through headers)

Please share your API documentation

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 4
(73 Views)

yes, it is Rest API. Pardon me as I am still new to labview. As I was only given an URL to work ( with the API residing in the server), hence there is no API document specifically. 

 

0 Kudos
Message 3 of 4
(69 Views)

@TJFoo wrote:

yes, it is Rest API. Pardon me as I am still new to labview. As I was only given an URL to work ( with the API residing in the server), hence there is no API document specifically. 


There needs to be some documentation. There are virtually umpteen ways to do authentication. The authentication not only can be passed as URL parameter or inside the HTML header or the body in any of JSON, XML, or whatever format, but the algo used to calculate the authentication, the actual encryption routines, ciphers and envelop and padding formats all need to match exactly too.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 4
(28 Views)