access to your full app. If the explanation above doesn’t help, can you
On Fri, Nov 16, 2012 at 2:52 PM, Tim Anglade <t
...@apigee.com> wrote:
> Hi Greg, sorry for the delay. This is out of my depth so I’m trying to get
> one of our core developers on this. Should have more news for you shortly.
> Cheers,
> Tim
> On Wed, Nov 14, 2012 at 1:14 PM, hartsteins <ghartst...@gmail.com> wrote:
>> Tim,
>> Any insights as to this issue?
>> As an update....I am able to post to groups with the same UGActivity
>> dictionary but not directly to a user activity. What do you think?
>> thanks
>> Greg
>> On Friday, November 9, 2012 7:12:53 PM UTC-8, hartsteins wrote:
>>> Tim,
>>> Thanks for the reply. While I am incorporating the UGAPI into a larger
>>> app, the error appears when just trying to post from your UGAPIApp sample
>>> included in iOS SDK.
>>> Here is the single method I added along with the testUGClient method
>>> from your UGAPIApp project. Have I set up the UGActivity correctly? I am
>>> making up Category entry. Where should I be getting this info from?
>>> -(void)testUGClient
>>> {
>>> // creation and init
>>> if ( !g_client )
>>> {
>>> g_client =[[UGClient alloc] initWithApplicationID:<MY APP ID>];
>>> }
>>> UGClientResponse *response = nil;
>>> response = [g_client logInUser:<MY_USERNAME> password:<MY_PASSWORD>];
>>> if ( [response transactionState] == kUGClientResponseFailure )
>>> {
>>> [self outputResponse:response title:@"LOG IN ERROR"];
>>> return;
>>> }
>>> CLLocation *fakeLocation = [[CLLocation alloc]
>>> initWithLatitude:37.776753 longitude:-122.407846];
>>> UGQuery *query = [UGQuery new];
>>> [query addRequiredWithinLocation:@"**location"
>>> location:fakeLocation distance:2000];
>>> response = [g_client getUsers:query];
>>> [self outputResponse:response title:@"getUsersActivity Response"];
>>> [self performSelector:@selector(**send) withObject:nil
>>> afterDelay:1];
>>> }
>>> -(void)send {
>>> UGActivity *postActivity = [[UGActivity alloc] init];
>>> [postActivity setBasics:@"post"
>>> category:@"TestCategory"
>>> content:@"This is a test" title:@"Test #1"];
>>> [postActivity setActorInfo:[[g_client getLoggedInUser] username]
>>> actorDisplayName:[[g_client getLoggedInUser] username]
>>> actorUUID:[[g_client getLoggedInUser] uuid]];
>>> UGClientResponse *response = nil;
>>> response = [g_client postUserActivity:[[g_client getLoggedInUser] uuid]
>>> activity:[postActivity toNSDictionary]];
>>> [self outputResponse:response title:@"Send Response"];
>>> }
>>> Here is the JSON that's returned:
>>> {"error":"null_pointer","**timestamp":1352516491510,"**
>>> duration":0,"exception":"java.**lang.NullPointerException"}
>>> I am working with both native iOS version and a HTML5 version.
>>> Even odder...the new message added via API that returns an error does
>>> not appear within the user's activity when refreshed via the
>>> API....BUT...its does appear in the HTML5 sample when refreshed. Any
>>> message added via HTML5 appears fine in API sample. The new message added
>>> via API does not appear in the web browser portal under user activity
>>> either.
>>> yeesh....does any of that make sense?
>>> Thanks for your help
>>> Greg
>>> On Friday, November 9, 2012 3:34:22 PM UTC-8, Tim Anglade wrote:
>>>> Hi Greg, very sorry about the error you’re encountering!
>>>> Would it be possible for you share the full project with us on github
>>>> or send us a zip? I want to try to reproduce this locally. Please feel free
>>>> to reach out privately if preferred.
>>>> Cheers!
>>>> Tim
>>>> On Fri, Nov 9, 2012 at 1:47 PM, hartsteins <ghart...@gmail.com> wrote:
>>>>> Here is a basic send method but it fails listing "null-pointer" as the
>>>>> error. User is signed in and activity feed is accessible. What am I
>>>>> missing?
>>>>> thanks - Greg
>>>>> -(void)send {
>>>>> UGActivity *postActivity = [[UGActivity alloc] init];
>>>>> [postActivity setBasics:@"post"
>>>>> category:@"TestCategory"
>>>>> content:@"This is a test"
>>>>> title:@"Test #1"];
>>>>> [postActivity setActorInfo:[[g_client getLoggedInUser] username]
>>>>> actorDisplayName:[[g_client getLoggedInUser] username]
>>>>> actorUUID:[[g_client getLoggedInUser] uuid]];
>>>>> UGClientResponse *response = nil;
>>>>> response = [g_client postUserActivity:[[g_client getLoggedInUser] uuid]
>>>>> activity:[postActivity toNSDictionary]];
>>>>> [self outputResponse:response title:@"Send Response"];
>>>>> }
>>>>> On Friday, November 9, 2012 10:15:03 AM UTC-8, hartsteins wrote:
>>>>>> I am working with the obj-c UGAPI code and hoping for some more
>>>>>> detailed examples.
>>>>>> -(BOOL) setBasics: (NSString *)verb category:(NSString *)category
>>>>>> content:(NSString *)content title:(NSString *)title;
>>>>>> is there a list of acceptable categories and verbs?
>>>>>> Thanks
>>>>>> Greg
>>>>> -- You received this message because you are subscribed to the Google
>>>>> Groups Usergrid group. To post to this group, send email to
>>>>> user...@googlegroups.com. To unsubscribe from this group, send email
>>>>> to usergrid+u...@googlegroups.com**. For more options, visit this
>>>>> group at https://groups.google.com/d/**forum/usergrid?hl=en<https://groups.google.com/d/forum/usergrid?hl=en>
>>>>> Learn more about Apigee Usergrid at http://apigee.com/about/**
>>>>> products/usergrid <http://apigee.com/about/products/usergrid>
>>>>> Fork Usergrid on GitHub: https://github.com/usergrid/**stack<https://github.com/usergrid/stack>
>>>> -- You received this message because you are subscribed to the Google
>> Groups Usergrid group. To post to this group, send email to
>> usergrid@googlegroups.com. To unsubscribe from this group, send email to
>> usergrid+unsubscribe@googlegroups.com. For more options, visit this
>> group at https://groups.google.com/d/forum/usergrid?hl=en
>> Learn more about Apigee Usergrid at
>> http://apigee.com/about/products/usergrid
>> Fork Usergrid on GitHub: https://github.com/usergrid/stack