Community articleRetrieving nonce and user information
Added by IBM contributorIBM on March 25, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Provides details on retrieving the Nonce value and user information which will be helpful for create, edit, and delete actions

The nonce is used when modifying or creating files in the Media Galley for security purposes.
 

Discoverability
You can derive the URL by using the following steps:

1) From the service document, use the web address specified in the href attribute of the <link rel="http://www.ibm.com/xmlns/prod/sn/opensocial"> element.

2) Use the URL from step 1 to retrieve the OpenSocial container data. Use the web address specified in the <URI> element with the peer
<Type>http://ns.opensocial.org/2008/opensocial/people</Type> element.

3) Append either the userId of the "/{userId}" or "/@me" to the url from step 2.

4) Append "/@self" to the url from step 3.

Input
Method URI Description
GET /files/{authType}/opensocial/people/{userId||@me}/@self URL to nonce value and JSON representation of user retrieved
Note: {userId : | @me} - Use the userId or "@me" to determine which user to retrieve information on
Name Type Optional Description
userId||@me
string No Use the userId or "@me" to determine which user to retrieve information on
authType
enumerated No Authentication type
Authorized values:
  • basic
  • form
  • oauth
Output
Content Type: application/json