From 5c70915f12470eb9c51ed8918434f7efdc0d83a1 Mon Sep 17 00:00:00 2001 From: glennmichael123 Date: Wed, 5 May 2021 11:37:56 +0800 Subject: [PATCH] Update README.md --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 05ce477..1d2c54e 100644 --- a/README.md +++ b/README.md @@ -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(); @@ -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'); @@ -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(); @@ -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']); @@ -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');