Advertisement
langbung01

Untitled

Mar 6th, 2019
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.59 KB | None | 0 0
  1.    public function requestAuth () {
  2.         $query = http_build_query([
  3.             'client_id'     => env("CLIENT_ID"),
  4.             'redirect_uri'  => env("REDIRECT_URI_AUTHORIZATION_CODE"), //redirect ของเว็บนี้ ที่ให้ปลื้มแก้ครับ
  5.             'response_type' => 'code',
  6.             'scope'         => '',
  7.         ]);
  8.         // return redirect(env("BACKEND_IP").'/api/oauth/getcode?'. $query);
  9.         // dd(env("BACKEND_IP").'/api/oauth/getcode?'. $query);
  10.         return redirect(env("BACKEND_IP").'/api/oauth/getcode?'. $query);
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement