Created
April 30, 2009 14:51
-
-
Save julesfern/104483 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Attributable is a videojuicer-specific module for handling | |
| attribution of objects to their original uploaders. | |
| The Videojuicer API allows authentication with one of two kinds of | |
| authorised token: | |
| 1. A User token, which has permissions of either 'read-user' or 'write-user'. | |
| Objects created with a User token are automatically *attributed* to the | |
| authenticated user. Requests made with User tokens cannot reassign | |
| objects to other users or manually specify the user_id of an object. | |
| Attempts to manually specify user_id with a User token will result in a | |
| validation error on the object. | |
| 2. A Master token, which has permissions of either 'read-master' or | |
| 'write-master'. Requests made with a Master token are able to | |
| manually set the user_id on objects. | |
| Attempts to create objects without a user_id will attribute the | |
| object to the user who authorised the Master token. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment