README.md in pihole-api-0.0.1 vs README.md in pihole-api-0.0.2

- old
+ new

@@ -14,10 +14,11 @@ ## TODO - Login and Auth token generation: `admin/scripts/pi-hole/php/api_token.php` - Undocumented endpointsw - Undocumented filters for getAllQueries +- Generate WebPassword Hash ## Installation Add this line to your application's Gemfile: @@ -39,11 +40,16 @@ require 'pihole-api' client = PiholeApi::Client.new(base_path: 'http://localhost:80/', api_token: '', port: 80) # Some example calls client.type - ``` + +Double hash web password to get the api_token. A helper method exists on the client to do this: +```ruby +require 'pihole-api' +PiholeApi::Client.hash_password(password) +end ### Endpoints #### Authorised - `summary_raw` - `summary(params: {})`