Hi
$url = 'https://path/to/oauth/'; $data = array('client_id' => CLIENT_ID, 'scope' => 'scope_name', 'redirect_url' => '../local/import_data/test_import.php', ); $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded", 'method' => 'POST', 'content' => http_build_query($data), 'ignore_errors' => true ) ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context);
i get ""status":"error: parameter missing"
in separate page on the Server with
session_start();before :"status":"ok"" I also tried
$options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded", 'Cookie'=>http_build_query(array( 'sesskey'=>$USER->sesskey, ))."\r\n", 'method' => 'POST', 'content' => http_build_query($data), 'ignore_errors' => true ) );
does anyone solve something like this?
Thx