JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbrclient_secret = SDK::getAccessToken(); $this->grant_type = 'authorization_code'; $this->code = $authorization_code; $this->redirect_uri = $redirect_uri; return $this->save(); } /** * refreshOAuthCredentials * @param $refresh_token * @return bool|mixed * @throws \Exception */ public function refreshOAuthCredentials($refresh_token){ $this->client_secret = SDK::getAccessToken(); $this->grant_type = 'refresh_token'; $this->refresh_token = $refresh_token; return $this->save(); } }