Skip to content

Commit 8062d45

Browse files
author
Vincent Tsao
committed
Preparing src for release 5.8.1
1 parent 520d9dd commit 8062d45

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

ChangeLog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### 5.8.1
2+
3+
DFP:
4+
- Removed ClientLogin related parameters from the DfpUser constructor. See the Auth/CreateDfpUserWithoutIniFile.php example for updated usage.
5+
16
### 5.8.0
27

38
AdWords:

examples/Dfp/Auth/CreateDfpUserWithoutIniFile.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* This example demonstrates how to create an DfpUser
4-
* object without using an auth.ini file.
3+
* This example demonstrates how to create an DfpUser object without using an
4+
* auth.ini file.
55
*
66
* PHP version 5
77
*
@@ -25,7 +25,7 @@
2525
* @copyright 2014, Google Inc. All Rights Reserved.
2626
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License,
2727
* Version 2.0
28-
* @author Ray Tsang
28+
* @author Vincent Tsao
2929
*/
3030
error_reporting(E_STRICT | E_ALL);
3131

@@ -58,7 +58,7 @@ function RunExample(DfpUser $user) {
5858
// Gets the current network.
5959
$network = $networkService->getCurrentNetwork();
6060

61-
printf("Current network has network code \"%s\" and display name \"%s\".\n",
61+
printf("Current network has network code %d and display name \"%s\".\n",
6262
$network->networkCode, $network->displayName);
6363
}
6464

@@ -74,10 +74,7 @@ function RunExample(DfpUser $user) {
7474
'refresh_token' => REFRESH_TOKEN
7575
);
7676

77-
// See DfpUser constructor
78-
$user = new DfpUser(NULL, NULL, NULL, APPLICATION_NAME, NETWORK_CODE,
79-
NULL, NULL, $oauth2Info);
80-
77+
$user = new DfpUser(null, APPLICATION_NAME, NETWORK_CODE, null, $oauth2Info);
8178
$user->LogDefault();
8279

8380
// Get the OAuth2 credential.

examples/Dfp/Auth/GetRefreshTokenWithoutIniFile.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
* @return array the user's OAuth 2 credentials
4545
*/
4646
function GetOAuth2Credential($user) {
47-
$redirectUri = NULL;
48-
$offline = TRUE;
47+
$redirectUri = null;
48+
$offline = true;
4949
// Get the authorization URL for the OAuth2 token.
5050
// No redirect URL is being used since this is an installed application. A web
5151
// application would pass in a redirect URL back to the application,
@@ -100,8 +100,7 @@ function GetOAuth2Credential($user) {
100100
'client_secret' => $clientSecret
101101
);
102102

103-
// See DfpUser constructor
104-
$user = new DfpUser(NULL, NULL, NULL, NULL, NULL, NULL, NULL, $oauth2Info);
103+
$user = new DfpUser(null, null, null, null, $oauth2Info);
105104
$user->LogDefault();
106105

107106
// Get the OAuth2 credential.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
LIB_VERSION = 5.8.0
1+
LIB_VERSION = 5.8.1
22
LIB_NAME = "Common-PHP"
33

0 commit comments

Comments
 (0)