@@ -1,22 +1,22 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright 2015 Alexey Maslov <[email protected]> |
|
4 | - * |
|
5 | - * Licensed under the Apache License, Version 2.0 (the "License"); |
|
6 | - * you may not use this file except in compliance with the License. |
|
7 | - * You may obtain a copy of the License at |
|
8 | - * |
|
9 | - * http://www.apache.org/licenses/LICENSE-2.0 |
|
10 | - * |
|
11 | - * Unless required by applicable law or agreed to in writing, software |
|
12 | - * distributed under the License is distributed on an "AS IS" BASIS, |
|
13 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
14 | - * See the License for the specific language governing permissions and |
|
15 | - * limitations under the License. |
|
16 | - * |
|
17 | - * Script for Google API authorization |
|
18 | - * @author alxmsl |
|
19 | - */ |
|
3 | + * Copyright 2015 Alexey Maslov <[email protected]> |
|
4 | + * |
|
5 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
|
6 | + * you may not use this file except in compliance with the License. |
|
7 | + * You may obtain a copy of the License at |
|
8 | + * |
|
9 | + * http://www.apache.org/licenses/LICENSE-2.0 |
|
10 | + * |
|
11 | + * Unless required by applicable law or agreed to in writing, software |
|
12 | + * distributed under the License is distributed on an "AS IS" BASIS, |
|
13 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
14 | + * See the License for the specific language governing permissions and |
|
15 | + * limitations under the License. |
|
16 | + * |
|
17 | + * Script for Google API authorization |
|
18 | + * @author alxmsl |
|
19 | + */ |
|
20 | 20 | |
21 | 21 | include __DIR__ . '/../vendor/autoload.php'; |
22 | 22 |
@@ -1,23 +1,23 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright 2015 Alexey Maslov <[email protected]> |
|
4 | - * |
|
5 | - * Licensed under the Apache License, Version 2.0 (the "License"); |
|
6 | - * you may not use this file except in compliance with the License. |
|
7 | - * You may obtain a copy of the License at |
|
8 | - * |
|
9 | - * http://www.apache.org/licenses/LICENSE-2.0 |
|
10 | - * |
|
11 | - * Unless required by applicable law or agreed to in writing, software |
|
12 | - * distributed under the License is distributed on an "AS IS" BASIS, |
|
13 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
14 | - * See the License for the specific language governing permissions and |
|
15 | - * limitations under the License. |
|
16 | - * |
|
17 | - * GCM message sending example |
|
18 | - * @author alxmsl |
|
19 | - * @date 5/28/13 |
|
20 | - */ |
|
3 | + * Copyright 2015 Alexey Maslov <[email protected]> |
|
4 | + * |
|
5 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
|
6 | + * you may not use this file except in compliance with the License. |
|
7 | + * You may obtain a copy of the License at |
|
8 | + * |
|
9 | + * http://www.apache.org/licenses/LICENSE-2.0 |
|
10 | + * |
|
11 | + * Unless required by applicable law or agreed to in writing, software |
|
12 | + * distributed under the License is distributed on an "AS IS" BASIS, |
|
13 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
14 | + * See the License for the specific language governing permissions and |
|
15 | + * limitations under the License. |
|
16 | + * |
|
17 | + * GCM message sending example |
|
18 | + * @author alxmsl |
|
19 | + * @date 5/28/13 |
|
20 | + */ |
|
21 | 21 | |
22 | 22 | include '../vendor/autoload.php'; |
23 | 23 |
@@ -25,8 +25,8 @@ |
||
25 | 25 | use alxmsl\Google\AndroidPublisher\InAppProducts\Resource as InAppProductsResource; |
26 | 26 | |
27 | 27 | const PACKAGE_NAME = 'com.example.package', |
28 | - ACCESS_TOKEN = '4CcE5s_T0keN', |
|
29 | - PRODUCT_ID = 'com.example.package.product.1'; |
|
28 | + ACCESS_TOKEN = '4CcE5s_T0keN', |
|
29 | + PRODUCT_ID = 'com.example.package.product.1'; |
|
30 | 30 | |
31 | 31 | $Client = new Client(); |
32 | 32 | $Client->setPackage(PACKAGE_NAME) |
@@ -1,23 +1,23 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright 2015 Alexey Maslov <[email protected]> |
|
4 | - * |
|
5 | - * Licensed under the Apache License, Version 2.0 (the "License"); |
|
6 | - * you may not use this file except in compliance with the License. |
|
7 | - * You may obtain a copy of the License at |
|
8 | - * |
|
9 | - * http://www.apache.org/licenses/LICENSE-2.0 |
|
10 | - * |
|
11 | - * Unless required by applicable law or agreed to in writing, software |
|
12 | - * distributed under the License is distributed on an "AS IS" BASIS, |
|
13 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
14 | - * See the License for the specific language governing permissions and |
|
15 | - * limitations under the License. |
|
16 | - * |
|
17 | - * Purchases products example |
|
18 | - * @author alxmsl |
|
19 | - * @date 5/28/13 |
|
20 | - */ |
|
3 | + * Copyright 2015 Alexey Maslov <[email protected]> |
|
4 | + * |
|
5 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
|
6 | + * you may not use this file except in compliance with the License. |
|
7 | + * You may obtain a copy of the License at |
|
8 | + * |
|
9 | + * http://www.apache.org/licenses/LICENSE-2.0 |
|
10 | + * |
|
11 | + * Unless required by applicable law or agreed to in writing, software |
|
12 | + * distributed under the License is distributed on an "AS IS" BASIS, |
|
13 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
14 | + * See the License for the specific language governing permissions and |
|
15 | + * limitations under the License. |
|
16 | + * |
|
17 | + * Purchases products example |
|
18 | + * @author alxmsl |
|
19 | + * @date 5/28/13 |
|
20 | + */ |
|
21 | 21 | |
22 | 22 | include '../vendor/autoload.php'; |
23 | 23 | |
@@ -25,9 +25,9 @@ discard block |
||
25 | 25 | use alxmsl\Google\AndroidPublisher\Purchases\Products\Resource as ProductsResource; |
26 | 26 | |
27 | 27 | const PACKAGE_NAME = 'com.example.package', |
28 | - ACCESS_TOKEN = '4CcE5s_T0keN', |
|
29 | - PRODUCT_ID = 'com.example.package.product.1', |
|
30 | - PURCHASE_TOKEN = 'puRCH45e_tokEN'; |
|
28 | + ACCESS_TOKEN = '4CcE5s_T0keN', |
|
29 | + PRODUCT_ID = 'com.example.package.product.1', |
|
30 | + PURCHASE_TOKEN = 'puRCH45e_tokEN'; |
|
31 | 31 | |
32 | 32 | $Client = new Client(); |
33 | 33 | $Client->setPackage(PACKAGE_NAME) |
@@ -25,9 +25,9 @@ |
||
25 | 25 | use alxmsl\Google\AndroidPublisher\Purchases\Subscriptions\SubscriptionsClient; |
26 | 26 | |
27 | 27 | const PACKAGE_NAME = 'com.example.package', |
28 | - ACCESS_TOKEN = '4CcE5s_T0keN', |
|
29 | - SUBSCRIPTION_ID = 'com.example.package.product.1', |
|
30 | - PURCHASE_TOKEN = 'puRCH45e_tokEN'; |
|
28 | + ACCESS_TOKEN = '4CcE5s_T0keN', |
|
29 | + SUBSCRIPTION_ID = 'com.example.package.product.1', |
|
30 | + PURCHASE_TOKEN = 'puRCH45e_tokEN'; |
|
31 | 31 | |
32 | 32 | $Client = new SubscriptionsClient(); |
33 | 33 | $Client->setPackage(PACKAGE_NAME) |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | // Define client identification |
28 | 28 | const CLIENT_ID = 'my-client@id', |
29 | - CLIENT_SECRET = 'clientsecret'; |
|
29 | + CLIENT_SECRET = 'clientsecret'; |
|
30 | 30 | |
31 | 31 | // Create new client |
32 | 32 | $Client = new WebServerApplication(); |
@@ -1,23 +1,23 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright 2015 Alexey Maslov <[email protected]> |
|
4 | - * |
|
5 | - * Licensed under the Apache License, Version 2.0 (the "License"); |
|
6 | - * you may not use this file except in compliance with the License. |
|
7 | - * You may obtain a copy of the License at |
|
8 | - * |
|
9 | - * http://www.apache.org/licenses/LICENSE-2.0 |
|
10 | - * |
|
11 | - * Unless required by applicable law or agreed to in writing, software |
|
12 | - * distributed under the License is distributed on an "AS IS" BASIS, |
|
13 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
14 | - * See the License for the specific language governing permissions and |
|
15 | - * limitations under the License. |
|
16 | - * |
|
17 | - * Google web server authorization uri example |
|
18 | - * @author alxmsl |
|
19 | - * @date 1/24/13 |
|
20 | - */ |
|
3 | + * Copyright 2015 Alexey Maslov <[email protected]> |
|
4 | + * |
|
5 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
|
6 | + * you may not use this file except in compliance with the License. |
|
7 | + * You may obtain a copy of the License at |
|
8 | + * |
|
9 | + * http://www.apache.org/licenses/LICENSE-2.0 |
|
10 | + * |
|
11 | + * Unless required by applicable law or agreed to in writing, software |
|
12 | + * distributed under the License is distributed on an "AS IS" BASIS, |
|
13 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
14 | + * See the License for the specific language governing permissions and |
|
15 | + * limitations under the License. |
|
16 | + * |
|
17 | + * Google web server authorization uri example |
|
18 | + * @author alxmsl |
|
19 | + * @date 1/24/13 |
|
20 | + */ |
|
21 | 21 | |
22 | 22 | include '../vendor/autoload.php'; |
23 | 23 | |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | |
27 | 27 | // Define client identification |
28 | 28 | const CLIENT_ID = 'my-client@id', |
29 | - CLIENT_SECRET = 'clientsecret', |
|
30 | - REDIRECT_URI = 'http://example.com/oauth2callback'; |
|
29 | + CLIENT_SECRET = 'clientsecret', |
|
30 | + REDIRECT_URI = 'http://example.com/oauth2callback'; |
|
31 | 31 | |
32 | 32 | // Create new client |
33 | 33 | $Client = new WebServerApplication(); |
@@ -194,7 +194,7 @@ |
||
194 | 194 | type: %s |
195 | 195 | sku: %s |
196 | 196 | status: %s |
197 | -EOD; |
|
197 | +eod; |
|
198 | 198 | return sprintf($format |
199 | 199 | , $this->getDefaultLanguage() |
200 | 200 | , $this->getPackageName() |
@@ -37,13 +37,13 @@ |
||
37 | 37 | * API client code |
38 | 38 | */ |
39 | 39 | const TYPE_PRODUCTS = 0, |
40 | - TYPE_SUBSCRIPTIONS = 1; |
|
40 | + TYPE_SUBSCRIPTIONS = 1; |
|
41 | 41 | |
42 | 42 | /** |
43 | 43 | * Google Purchases API uri parts |
44 | 44 | */ |
45 | 45 | const URI_PRODUCTS = 'products', |
46 | - URI_SUBSCRIPTIONS = 'subscriptions'; |
|
46 | + URI_SUBSCRIPTIONS = 'subscriptions'; |
|
47 | 47 | |
48 | 48 | /** |
49 | 49 | * GooglePlay Purchases Products API endpoint |