Sign in or 

| HTTP Method | URI | Returns | ||||||||
| POST | /NamespaceService/createNamespace.do | A string representing the new namespace name. | ||||||||
| Overview: To allow the creation and maintenance of multiple namespaces, we have introduced two changes to our server API. First, we have added a new API call to programmatically create namespaces associated with a developer key. Second, we have modified the user role change API call to allow the association of your users with new namespaces. Once one of your users has been logged in via the UserService.login API call, their ticket may be used to give them access to all namespaces associated with your developer key. It is not necessary or desirable to log them in individually to each namespace. However, your users do not automatically have a role on all your namespaces. It is necessary to grant your usersspecific roles on each namespace for which you would like to grant them access. The preferred mechanism for doing this is the UserService.changeRole API. NAMESPACE CREATIONThis API call creates a new content namespace. The primary argument to this call is a namespaceId. Injected will incorporate this identifier into the resulting namespace; however to guarantee uniqueness, the namespace will likely differ from your identifier. You should parse the response from this call to determine the actual namespace to use in future calls. The createNamespace call requires a developer signature, similar to the UserService calls. Whereas the signature for the UserService calls includes the userId of the user in question, the createNamespace call includes the namespaceId, as included in the namespace.namespaceId parameter. ROLE CHANGEWhen you log in users to Injected using the UserService.login API call, you grant them access to a particular namespace (as specified by the ns and user.role parameters). By default, users will not have a role on any namespaces other than the one specified in this API call. Any calls to these namespaces using their ticket will result in an INVALID_ROLE failure.The role change API call has been updated to allow you to grant your users access to newly created namespaces. Simply call the role change API to specify the desired role in the new namespace. POST /NamespaceService/createNamespace.do | ||||||||||
Common Parameters
| ||||||||||
| Example Request ( required parameters in red ): | ||||||||||
| Example Response: <response><namespace>wp-injected-yoursite</namespace></response> | ||||||||||
|
boe_wetpaint |
Latest page update: made by boe_wetpaint
, Sep 29 2008, 5:44 PM EDT
(about this update
About This Update
No content added or deleted. - complete history) |
|
Keyword tags:
None
More Info: links to this page
|
| Started By | Thread Subject | Replies | Last Post | ||
|---|---|---|---|---|---|
| evolanding | CreateNamespace cred.sig | 2 | Jul 28 2008, 1:44 PM EDT by devin_wetpaint | ||
|
Thread started: Jul 25 2008, 2:05 PM EDT
Watch
The notes read:
Developer credential signature. This is calculated as the HMAC-SHA-1 hash of the developer key (the key parameter), the namespace ID (the namespace.namespaceId parameter, described above), and the current timestamp (the cred.ts parameter). The key used by the HMAC-SHA-1 algorithm should be the developer secret. For example, in PHP: $sig = hash_hmac( "sha1", $developer_key . $user_id . time(), $developer_secret, FALSE ); The PHP code is for user service, and does not match the explanation above it. Do I sub the NS in place of the userID? I don't need a userID to generate a NS, do I?
Do you find this valuable?
Keyword tags:
createnamespace
namespace
|
|||||
| evolanding | Changing the namespace of a cell | 1 | Jul 28 2008, 1:34 PM EDT by devin_wetpaint | ||
|
Thread started: Jul 25 2008, 4:19 PM EDT
Watch
Is it possible to update the namespace of a cell that has already been created?
We implemented some serious post-processing on our side to emulate our own namespacing system on our wetpaint data, and now that namespacing is supported, we'd like to adjust our framework accordingly. This will involve processing all of our cells and changing the namespace of them, and the documentation isn't clear on whether this can be done. Any help is appreciated, thanks.
Do you find this valuable?
Keyword tags:
changing namespace
edit cell
namespace
|
|||||