getLoginUrl() public method

Gets the login URL.
See also: Elogram\Helpers\RedirectLoginHelper::getLoginUrl()
public getLoginUrl ( array $options = [] ) : string
$options array
return string
 public function getInstagram()
 {
     //$var=https://api.instagram.com/v1/users/search?q=mirza&count=20&access_token=3218426889.1677ed0.8585337f6f2c40a1a636fddcfb381b6f ;
     //$var=Instagram::users()->get(30);
     //var_dump($var);
     //
     /*$client=new client;
             $client='9a3247a758864f99a58da4b9d7519d42';
             $access_token='3218426889.1677ed0.8585337f6f2c40a1a636fddcfb381b6f';
         
     
         $query = 'Ash Ketchum';
         $response = $client->get("https://api.instagram.com/v1/users/search?q={$query}&access_token={$access_token}");
         $results = $response->json();*/
     $clientId = '9a3247a758864f99a58da4b9d7519d42';
     $clientSecret = 'dabdc921ab254bb8af6b0bfce240cf40';
     $accessToken = '3218426889.1677ed0.8585337f6f2c40a1a636fddcfb381b6f';
     $redirectUrl = 'http://localhost:8000/auth/instagram/callback';
     $client = new Client($clientId, $clientSecret, null, $redirectUrl);
     header('Location: ' . $client->getLoginUrl());
     die;
 }