admin): ?> Admin $el): ?>
'.e('Admin').'' : '' ?>
$title): ?>

has('api') && \Core\Auth::user()->teamPermission('api.create')): ?>

 "'.route('api.account.get').'",
                                        CURLOPT_RETURNTRANSFER => true,
                                        CURLOPT_MAXREDIRS => 2,
                                        CURLOPT_TIMEOUT => 10,
                                        CURLOPT_FOLLOWLOCATION => true,
                                        CURLOPT_CUSTOMREQUEST => "POST",
                                        CURLOPT_HTTPHEADER => [
                                            "Authorization: Bearer '.$token.'",
                                            "Content-Type: application/json",
                                        ],
                                    ));

                                    $response = curl_exec($curl);') ?>
admin): ?>

GET ?clientid=YOUR_CLIENT_ID&redirect=YOUR_REDIRECT_URI

  • clientid:
  • redirect:

YOUR_REDIRECT_URI?code=AUTHORIZATION_CODE

POST 
Content-Type: application/json
{
"code": "AUTHORIZATION_CODE",
"secret": "YOUR_CLIENT_SECRET"
}

{
"error": false,
"access_token": "YOUR_ACCESS_TOKEN",
"expires_at": 1234567890
}

GET 
Authorization: Bearer YOUR_ACCESS_TOKEN

$rate[0], 'y' => $rate[1]]) ?>

X-RateLimit-Limit: 
X-RateLimit-Remaining:
X-RateLimit-Reset: TIMESTAMP

$el): ?>

$data): ?>

$desc): ?>
 "'.$data['route'].'",
                                                CURLOPT_RETURNTRANSFER => true,
                                                CURLOPT_MAXREDIRS => 2,
                                                CURLOPT_TIMEOUT => 10,
                                                CURLOPT_FOLLOWLOCATION => true,
                                                CURLOPT_CUSTOMREQUEST => "'.$data['method'].'",
                                                CURLOPT_HTTPHEADER => [
                                                    "Authorization: Bearer '.$token.'",
                                                    "Content-Type: application/json",
                                                ],
                                                '.(
                                                    $data['code'] ? 'CURLOPT_POSTFIELDS => 
                                                    \''.str_replace("\n","\n\t", json_encode($data['code'], JSON_PRETTY_PRINT)).'\',' : ''
                                                ).'
                                            ));

                                            $response = curl_exec($curl);

                                            curl_close($curl);
                                            echo $response;') ?>