Skip to content

Commit 66f768f

Browse files
author
Eric Urban
committed
sunset v11 refresh v12
1 parent 680cda3 commit 66f768f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

samples/V12/AuthHelper.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// Specify the Microsoft\BingAds\Auth classes that will be used.
1010

1111
use Microsoft\BingAds\Auth\OAuthDesktopMobileAuthCodeGrant;
12-
use Microsoft\BingAds\Auth\OAuthDesktopMobileImplicitGrant;
1312
use Microsoft\BingAds\Auth\OAuthWebAuthCodeGrant;
1413
use Microsoft\BingAds\Auth\AuthorizationData;
1514
use Microsoft\BingAds\Auth\OAuthTokenRequestException;
@@ -120,10 +119,6 @@ static function SearchAccountsByUserId($userId, $pageIndex, $pageSize)
120119

121120
static function AuthenticateWithOAuth()
122121
{
123-
// $authentication = (new OAuthDesktopMobileAuthCodeGrant())
124-
// ->withEnvironment(AuthHelper::ApiEnvironment)
125-
// ->withClientId(AuthHelper::ClientId);
126-
127122
$authentication = (new OAuthDesktopMobileImplicitGrant())
128123
->withEnvironment(AuthHelper::ApiEnvironment)
129124
->withClientId(AuthHelper::ClientId);
@@ -144,8 +139,7 @@ static function AuthenticateWithOAuth()
144139
else
145140
{
146141
AuthHelper::RequestUserConsent();
147-
}
148-
var_dump($GLOBALS['AuthorizationData']);
142+
}
149143
}
150144
catch(OAuthTokenRequestException $e)
151145
{

0 commit comments

Comments
 (0)