From 6bd0f3a057f91555fee61e2f8a5190d0652611f2 Mon Sep 17 00:00:00 2001 From: Aaron Krauss Date: Tue, 7 Apr 2015 11:18:59 -0500 Subject: [PATCH 1/2] Update README to include Single-User Auth Info I just upgraded to the V3 API (very nice job), but I was a little confused on authenticating. I only ever needed to authenticate as a single user, and thus didn't need to go through the hassle of building multi-user authentication. This information wasn't in this repo, so I had to go digging and found out about single-user auth on the Vimeo documentation on the API site. I feel like this is probably a common enough occurance to warrant placing it in the readme. I retrieved all text from the Vimeo API site. --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index ad7ea7b..a6373b3 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,18 @@ $lib->setToken($token->access_token) ### Authenticated +#### Single User Applications + +If you only ever plan on interacting with a single user account feel free to hard code your access tokens into your app. This token should follow the spec described under authenticated requests. + +If this user is also the app owner, you can generate a token on your app page. + +```php +$lib->setToken($access_token); +``` + +#### Multi-User Applications + 1. Build a link to Vimeo so your users can authorize your app. ```php From 90b1d390bfa462c1f5bf31ea81b2183e16ac6fdc Mon Sep 17 00:00:00 2001 From: Aaron Krauss Date: Tue, 7 Apr 2015 13:51:32 -0500 Subject: [PATCH 2/2] Fix README --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index a6373b3..e30a697 100644 --- a/README.md +++ b/README.md @@ -89,9 +89,7 @@ $lib->setToken($token->access_token) #### Single User Applications -If you only ever plan on interacting with a single user account feel free to hard code your access tokens into your app. This token should follow the spec described under authenticated requests. - -If this user is also the app owner, you can generate a token on your app page. +If you only ever plan on interacting with a single user account, feel free to hard code (or preferably configure) your access tokens into your app. ```php $lib->setToken($access_token);