Skip to content
This repository has been archived by the owner on Aug 21, 2019. It is now read-only.

Commit

Permalink
username_or_token in readme
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <b@bnomei.com>
  • Loading branch information
bnomei committed Apr 8, 2017
1 parent 0b8b3e1 commit a1d2563
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ Once installed, configured and authorized you can output [your images](https://w

use the Kirby-Tag
```
(instagramapi: mykirbyusername endpoint: users/self/media/recent snippet: ia-example-media)
(instagramapi: mykirbyusername_or_token endpoint: users/self/media/recent snippet: ia-example-media)
```

or plain php
```php
// snippet
snippet('ia-example-media', ['user'=>'mykirbyusername', 'endpoint'=>'users/self/media/recent']);
snippet('ia-example-media', ['user'=>'mykirbyusername_or_token', 'endpoint'=>'users/self/media/recent']);

// page or site methods
$result = $page->instagramapi('mykirbyusername', 'users/self/media/recent');
$result = $page->instagramapi('mykirbyusername_or_token', 'users/self/media/recent');
foreach($result['data'] as $data) { /*...*/ }
```

Expand Down Expand Up @@ -118,7 +118,7 @@ You can define your own subject and body-snippet for both emails using settings
### Example: Using a Tag with Snippet show to Most-Recent-Media

```
(instagramapi: mykirbyusername endpoint: users/self/media/recent snippet: ia-example-media)
(instagramapi: mykirbyusername_or_token endpoint: users/self/media/recent snippet: ia-example-media)
```
If you use the same snippet or endpoint everytime consider setting a default in your `site/config/config.php`.
Expand All @@ -131,7 +131,7 @@ c::set('plugin.instagram-api.tag.snippet', 'ia-example-media');
This simplifies the Kirby-Tag call to:

```
(instagramapi: mykirbyusername)
(instagramapi: mykirbyusername_or_token)
```

### Example: Using a Snippet show to Most-Recent-Media
Expand All @@ -142,7 +142,7 @@ See `snippet` [ia-example-media](https://github.com/bnomei/kirby-instagram-api/b
snippet('ia-example-media');

// or if you want to override the defaults
snippet('ia-example-media', ['user'=>'mykirbyusername', 'endpoint'=>'users/self/media/recent']);
snippet('ia-example-media', ['user'=>'mykirbyusername_or_token', 'endpoint'=>'users/self/media/recent']);
```

### Example Page and Site Method
Expand Down

0 comments on commit a1d2563

Please sign in to comment.