Dylan conway

Statistics

This object shows some data of interest for the developer about one of his/her apps use.

2. Properties

Name Description Permissions Result
id Unique identifier for this resource -- string
url Web resource of the referenced object -- string
objectType statistics -- string
service OPENi -- string
downloads Number of downloads for the app number
rating Users rating (bad ... very good) string

3. Methods and Connections

3.1 Methods

Verb Object Prefix Target Object Context Description Related Services CBS API method link Permissions
get statistics for [application] Gets the statisticts for a given Application --
create statistics for [application] Creates a statistic object for a given Application --
update statistics for [application] Modifies some properties for the given Application --

3.2 Connections

Verb Object Prefix Target Object Context Description Related Services CBS API method link Permissions
post [comment] to Application [date] [time] A final user upload any comment about the given application
get [comment] {List} from Application Retrives all comments related to the given Application

4. Example Calls

4.1 Methods

Method Get Statistics
Details Gets a Statistics object.
Call Method [REST] #GET
API path
API_PATH/{Statistics_ID}
Properties {Statistics_ID}
Response

| Method | Create statistics |
| Details | Creates a Statistics object for a given Application. |
| Call Method | [REST] #POST |
| API path |

API_PATH/{Statistics_ID}
|
| Properties| |
| Response | A error or success code |

| Method | Update statistics |
| Details | Updates a Statistics object for a given Application. |
| Call Method | [REST] #PUT |
| API path |

API_PATH/{Statistics_ID}
|
| Properties| App_id, downloads, rating |
| Response | A success or error code |

4.2 Connections

Method Get comments
Details Gets the comments List for the given Aplication.
Call Method [REST] #GET
API path
API_PATH/{Statistics_ID}/comments
Properties
Response

| Method | Add comment |
| Details | Adds one comment to the CommentsList for the given Aplication. |
| Call Method | [REST] #POST |
| API path |

API_PATH/{Comment_ID}
|
| Properties| Statistics_ID|
| Response | A success or error code |


Related

Wiki: REST
Wiki: comment
Wiki: application
Wiki: OPENi Service Enablers
Wiki: OPENi_Service_Enablers
Wiki: CGI's API definitions