PHP oauth2 authorization returns html login

Management Services for remote monitoring and upgrade of AirPrime modules and AirLink gateways

PHP oauth2 authorization returns html login

Postby natashawylie » Wed Jan 31, 2018 3:57 pm

Hi there,

I'm trying to implement an integration between airvantage and a local network intranet.
I've been following the instructions on the various api documents but all seem to brush over the log in requirement.

Could someone shed some light on how to authenticate and get a token in PHP please?

This is what I'm doing, and I'm expecting to receive the code for the token request.

Code: Select all
$auth_url = 'https://eu.airvantage.net/api/oauth/authorize?client_id=' . $client_id . '&response_type=code&redirect_uri=' . $redirect_uri;

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $auth_url);
$result = curl_exec($curl);



Thank you in advance.
natashawylie
 
Posts: 1
Joined: Wed Jan 31, 2018 7:42 am
Has thanked: 0 time
Have thanks: 0 time

Return to AirVantage Management Services

Who is online

Users browsing this forum: No registered users and 1 guest