Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
alibo committed Feb 29, 2016
2 parents 17953b4 + 431673e commit dc642de
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ $token = $bazaar->token('<REDIRECT_URI>');
echo "Refresh Token: " . $token->refreshToken();
~~~

**Here is the full example: [authorization.php](https://github.com/nikapps/bazaar-api-php/examples/authorization.php)**
**Here is the full example: [authorization.php](https://github.com/nikapps/bazaar-api-php/blob/master/examples/authorization.php)**


### Setting up config
Expand Down Expand Up @@ -132,13 +132,14 @@ if ($purchase->failed()) {
}
~~~

**Full Example: [purchase.php](https://github.com/nikapps/bazaar-api-php/examples/purchase.php)**

Here is the example of getting state of a subscription:
**Full Example: [purchase.php](https://github.com/nikapps/bazaar-api-php/blob/master/examples/purchase.php)**


### Subscription

Here is the example of getting state of a subscription:


~~~php
$subscription = $bazaar->subscription('com.example.app', 'subscription-id (sku)', 'purchase-token');

Expand All @@ -152,7 +153,7 @@ if ($subscription->failed()) {
}
~~~

**Full Example: [subscription.php](https://github.com/nikapps/bazaar-api-php/examples/subscription.php)**
**Full Example: [subscription.php](https://github.com/nikapps/bazaar-api-php/blob/master/examples/subscription.php)**

### Cancel Subscription (Unsubscribe)

Expand All @@ -168,7 +169,7 @@ if ($unsubscribe->successful()) {
}
~~~

**Full Example: [unsubscribe.php](https://github.com/nikapps/bazaar-api-php/examples/unsubscribe.php)**
**Full Example: [unsubscribe.php](https://github.com/nikapps/bazaar-api-php/blob/master/examples/unsubscribe.php)**

## Customization

Expand Down Expand Up @@ -199,7 +200,7 @@ class CustomTokenStorage implements TokenStorageInterface {

## Examples

See: [https://github.com/nikapps/bazaar-api-php/examples/](https://github.com/nikapps/bazaar-api-php/examples/)
See: [https://github.com/nikapps/bazaar-api-php/blob/master/examples/](https://github.com/nikapps/bazaar-api-php/blob/master/examples/)

## Dependencies

Expand Down

0 comments on commit dc642de

Please sign in to comment.