Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to extract uuid of an entity using javascript
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
keyur chitnis  
View profile  
 More options Nov 7 2012, 4:36 pm
From: keyur chitnis <keyurchit...@gmail.com>
Date: Wed, 7 Nov 2012 13:36:34 -0800 (PST)
Local: Wed, Nov 7 2012 4:36 pm
Subject: How to extract uuid of an entity using javascript

I am trying to delete messages from the user interface using javascript. I
am able to access all other fields within the entity but I cant access the
uuid field.

 {
"uuid": "26d55917-291e-11e2-872a-02e81ae640dc",
"type": "activity",
"created": 1352322025181,
"modified": 1352322025181,
"actor": {
"displayName": "kimmie",
"image": {
"duration": 0,
"height": 80,
"url": "*http://www.gravatar.com/avatar/"<http://www.gravatar.com/avatar/%27>
*,
"width": 80

},

"uuid": "8ec05faa-2821-11e2-988a-02e81ae640dc",
"email": "kim...@email.com",
"username": "kimmie"
},

"category": "notification",
"date": "1352319485747",
"notification name": "1352319485747",
"published": 1352322025181,
"status": "igo",
"userid": "kimmie",
"verb": "post",
"WorkItem": "W007229-25JUL12",
"path": "/activities/26d55917-291e-11e2-872a-02e81ae640dc"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rod Simpson  
View profile  
 More options Nov 7 2012, 6:32 pm
From: Rod Simpson <r...@apigee.com>
Date: Wed, 7 Nov 2012 16:32:55 -0700
Local: Wed, Nov 7 2012 6:32 pm
Subject: Re: [usergrid] How to extract uuid of an entity using javascript

Keyur,

Can you provide the call you are trying to make?  I don't quite understand what you are trying to do.

Thanks!

Rod

--
Rod Simpson
apigee
skype: rockerston
twitter: rockerston
m: 303.859.7323


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sunil Kumar BT  
View profile  
 More options Nov 8 2012, 1:39 pm
From: Sunil Kumar BT <sunil.rn...@gmail.com>
Date: Thu, 8 Nov 2012 10:39:02 -0800 (PST)
Local: Thurs, Nov 8 2012 1:39 pm
Subject: Re: [usergrid] How to extract uuid of an entity using javascript

   Hi Rod,

   I am developing a mobile messenger application using apigee.
   In order to delete messages on the user interface, I need to extract the
message user decides to delete.
  One way we can extract a msg from apigee is using UUID.

   { "msg1": "Hello",
     "uuid": "8ec05faa-2821-11e2-988a- <https://apigee.com/usergrid/#>
02e81ae640dc",
    "email": "ke...@email.com",
    "username": "kimmie"
  <https://apigee.com/usergrid/#>}
  {
    "msg2": "abcdefg"
    "uuid": "3eff6ffda-2821-11e2-988a- <https://apigee.com/usergrid/#>
02e81ae640dc",
    "email": "kim...@email.com",
    "username": "kimmie"

}

   {
      "msg3":"123123123"
      "uuid": "5fgd5tfaa-2821-11e2-988a- <https://apigee.com/usergrid/#>
02e81ae640dc",
      "email": "kim...@email.com",
      "username": "kimmie"
  }

"https://api.usergrid.com/neal.schneier/newtest/users/testuser/activit...
8ec05faa-2821-11e2-988a- <https://apigee.com/usergrid/#>02e81ae640dc""
or
"https://api.usergrid.com/neal.schneier/newtest/users/testuser/activit..."
   -will extract an individual msg.

*How can I do this using javascript?*


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rod Simpson  
View profile  
 More options Nov 8 2012, 3:24 pm
From: Rod Simpson <r...@apigee.com>
Date: Thu, 8 Nov 2012 13:24:18 -0700
Local: Thurs, Nov 8 2012 3:24 pm
Subject: Re: [usergrid] How to extract uuid of an entity using javascript

Sunil,

There are several ways you could accomplish this with Javascript, and all really depend on your project.  What you are trying to do is a DELETE.  If you were using curl, the command would look like this:

curl -X DELETE "https://api.usergrid.com/neal.schneier/newtest/users/testuser/activit..."  

Take a look at the following projects:

https://github.com/apigee/usergrid-javascript-sdk

This first one is our javascript SDK, which you can include in your project.  It will allow you to make all types of calls against the SDK.  You would want to do something like this:

Usergrid.ApiClient.runAppQuery(new Usergrid.Query(
    "DELETE",
    "users/testuser/activities/8ec05faa-2821-11e2-988a-02e81ae640dc",
    null,
    null,
    function(results) {
        //success!
//do something with the results
    },
    function() {
//failure
        alert('Error, Unable to retrieve users.');
    }
););

https://github.com/apigee/Usergrid-jQuery-Example

This second one shows you how to do the same thing but only using query.

Hope this helps!

Rod

--
Rod Simpson
apigee
skype: rockerston
twitter: rockerston
m: 303.859.7323


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »