Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
glennmichael123 committed May 5, 2021
1 parent 4bed368 commit 5c70915
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ use Meema\MeemaClient\Client

$client = new Client($meemaApiKey);
```
Using the Media model.
Using the `Media` model

```php
$client->media()->create('New media name');
$client->media()->get();
Expand Down Expand Up @@ -73,7 +74,7 @@ $media->tags()->associate(['name' => 'Tag Name']);
$media->tags()->disassociate(['name' => 'Tag Name']);
```

Using the Folder model.
Using the `Folder` model

```php
$client->folders()->create('New folder name');
Expand Down Expand Up @@ -101,7 +102,7 @@ $folder->tags()->associate(['tag_id' => 7]);
$folder->tags()->disassociate(['tag_id' => 7]);
```

Using the Tag model.
Using the `Tag` model

```php
$client->tags()->get();
Expand All @@ -118,7 +119,7 @@ $tag->delete();
$tag->media()->get();
```

Using the favorite model.
Using the `Favorite` model

```php
$client->favorites()->create(['name' => 'New Favorite Name', 'icon' => 'favorite-icon']);
Expand All @@ -135,7 +136,7 @@ $favorite->update(['name' => 'Updated Favorite Name', 'icon' => 'updated-favorit
$favorite->delete();
```

Using the storage model.
Using the `Storage` model

```php
$client->storage()->upload('path/to/local/media/file');
Expand Down

0 comments on commit 5c70915

Please sign in to comment.