Retrieving nonce and user information
Added by IBM contributorIBM | Edited by Claudia R Elbourn on July 7, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Retrieve the Nonce value and user information.
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/{auth}/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
auth
enumerated No The authorization protocol being used by your application to access Connections Cloud.
Authorized values:
  • basic
  • oauth
Name Type Optional Description
Authorization
enumerated No The authentication mechanism selected by your application to access the API.
Basic is the Base64 encoding of the IBM Connections Cloud username and password: Base64(username:password). For example, Base64(twatson@us.ibm.com:password).
Bearer is the oauth 2.0 access token that is generated when the user grants your application access to IBM Connections Cloud services.
See the reference topic "OAuth 2.0 APIs for web server flow" for more information.
Authorized values:
  • bearer
  • basic
Output
Content Type: application/json
Code Description
401
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.