|
Generic Agency Contributor API Design Outline |
Bob Davies - picNiche.com admin@picNiche.com May 2010 |
|
Function |
Parameters |
Description |
|
Image Management: |
|
|
|
put_ImageMetadata |
Title, Description, Keywords, Language, Content Type, Ref No, Filename, Owner Id |
Creates (or updates) an image record with provided metadata, with or without references to identify the file(s) or uploaded content. |
|
get_UploadDestination |
Ref No, Content Type, Owner Id |
Returns a set of data specifying the upload location. |
|
put_UploadImage |
File(s), Content Type, Ref No, Owner Id |
Receives an uploaded file (with or without a reference) and stores in or sends to the appropriate systems. |
|
get_ImageMetadata |
Ref No |
Returns the metadata associated with the provided image reference. |
|
get_ImageList |
Owner Id, Phrase, Options |
Returns a list of image references for that owner (optionally matching provided search phrase or other options) |
|
Release Management: |
|
|
|
put_Release |
Release Type, Name, DoB, Location, File, Owner Id |
Receives an uploaded file and stores in or sends to the appropriate systems. |
|
get_Releases |
Release Type, Ref No, Options, Owner Id |
Returns a list of releases for this owner (optionally matching search options) |
|
assign_Releases |
Release(s), Ref No, Owner Id, Remove |
Assigns provided release records to provided image reference. |
|
Authentication: |
|
|
|
Login |
Username, Encrypted Password |
Creates a session for this user (if stateful), or returns a value confirming they are sufficiently authenticated to alter information relating to their account (which may be provided to the api for future operations). |
|
Logout |
Owner Id |
Closes a session for this user or any user if omitted. Prevents further authenticated operations. |
|
Workflow & Status: |
|
|
|
get_ImageStatus |
Ref No, Owner Id |
Returns review status for image reference (in review, rejected (and reason), approved) |
|
get_ImageHistory |
Ref No, Owner Id, Start Date, End Date |
Returns sales records for an image record |
|
get_AccountHistory |
Owner Id, Start Date, End Date |
Returns sales records across all images for a given owner account |
|
get_AccountBalance |
Owner Id |
Returns the current account total earnings |
|
get_PortfolioCount |
Owner Id |
Returns the total count of images available for sale in portfolio |
|
Function |
Arguments |
Description |
|
Satellite Metadata: |
|
|
|
assign_Licenses |
Ref No, Licenses, Owner Id |
Sets the granted licenses on referenced image to provided licenses. |
|
assign_Categories |
Ref No, Categories, Owner Id |
Sets the provided categories on referenced image. |
|
assign_Vocabulary |
Ref No, Vocabulary Set, Owner Id |
Sets the provided vocabulary on referenced image. |
|
Lookups: |
|
|
|
get_ContentTypes |
|
Returns a list of content types (image, video, audio, etc) |
|
get_Licenses |
Content Type |
Returns a list of licenses for this content type (each named value should include a link to relevant legal documentation). |
|
get_Categories |
Content Type, Keyword(s) |
Returns a list of categories for this content type (including Ids and/or matching provided keywords). |
|
get_Vocabulary |
Keyword(s) |
Returns a list of vocabulary matches (matching against provided keyword(s)) for systems with a fixed vocabulary restriction. |
|
|
|
|
|
|
|
|
|
|
|
|