diff --git a/README.md b/README.md index 659841f..3608974 100644 --- a/README.md +++ b/README.md @@ -21,38 +21,33 @@ composer require edbizarro/clash-royale-api ## Usage -Example get clan info +> Before use this library visit [https://developer.clashroyale.com](https://developer.clashroyale.com) to get an API TOKEN + +Make sure to initialize the API with a valid token before making requests ` +Api::setToken($apiToken);` + +### Clan + +#### Info ``` php get()); +$clan->get(); ``` -Search for a clan +#### Search ``` php search(['name' => 'clan name'])); +$clan->search(['name' => 'clan name']); ```