Also I get an error using this: this.ApiKey = _apiKey;
but if I use: this.ApiKey = apiKey; I’m good to go.
From Objective-C, I believe _apikey would be an auto synthesized property. Is that relevant here?
Also I get an error using this: this.ApiKey = _apiKey;
but if I use: this.ApiKey = apiKey; I’m good to go.
From Objective-C, I believe _apikey would be an auto synthesized property. Is that relevant here?
For some reason, I am having a hard time with the code posted on GitHub. I am posting to an existing feed and channel. The feed gets the post, but there is nothing in the body. I am logging function put(feed) to check it.
Fri Aug 02 2013 09:19:52 GMT-0400 (EDT): { “datastreams”: [(null : 0x(nil))] }
Testing with this:
temp <- 72; client <- Xively.Client("Master Key"); tempChannel <- Xively.Channel("probe1"); tempChannel.Set(temp); feed <- Xively.Feed("1990153056", [tempChannel]); client.Put(feed);
I think I figured it out… Unless I don’t understand… this needs to be updated.
function ToJson() {
local json = http.jsonencode({id = this.id, current_value = this.current_value });
return json;
}
You are exactly right @jwehr.
We actually had someone submit a pull request this morning to fix those issues, which we’ve accepted. The code in the repo should be working as expected now
Sorry about those issues, and let us know if you find anything else (also, if you’re proficient at git, we encourage you to submit pull requests / bug reports when you find broken things!)
Hi,
is it possible that the GitHub commands for Pull/Get ist wrong?
GitHub:
// Pull from Xively
Xively.Put(feed, Xively.API_KEY);
i think it has to be:
// Pull from Xively
Xively.Get(feed, Xively.API_KEY);
I think also a pull/get example would be helpfull.
@Chrischi - where are you looking on GitHub?
Our Xively code has the following:
// Pull from Xively client.Get(feed, Xively.API_KEY);
Oh I see - thanks! I’ll edit that post.