i just started to code an app, which allows me to handle my channels and feeds with the thingspeak api.
creating channels and feeds isnt that hard, but i also need my user api key, i know i can get it from my profile, but i want my app to get it.
i looked up the code from
and tried to get all informations to login without original thingspeak site, i just got this:
if you see the source code of the login site, there is given the authenticity_token from the TS site
but always i try to login this way (by URL), it says "Sorry, that user cannot be found."
-i dont realy get why
-im not that approved in coding
-> plz can someone give me a hint to get this run?
Can you describe more about your application? Almost all the data you store in ThingSpeak can be obtained via MQTT broker or API calls. There is no way to obtain the API key(s) without logging in.
this app can be used to control your electricity consumption, gas, water whatever.
much people dont know much about iot or smth else, but want to use new technologies,
so my app must be able to make the registration,login, create a channel, create a (multi)chart
and so on automaticly.
creating channel and chart isnt that hard, but to register and login is the prob.
the web component saves the first cookie on thingspeak.com/login and i now know hot to get the
token and how to send it and send the login data with post by ai2 web component, but by sending this data
u will be redirected to /sign_in where u get a new cookie, which u need to hand it to next redirection /mwa_linking,
but this cookie the web component doenst "take" or "get" or whatever
after changing the code the "Sorry, that user cannot be found." thing is gone and i can see by Packet Capture, that
the app follows the same way like the browser do, but as i can see too, the cookie isnt set at first redirection.
so how to handle this?
greets and thanks for any idea
i had success... 🙂
Maybe it is possible to do it as i wanted it to do, but i found another solution.
1) use the webviewer component to open site and to login
2) use WebViewCookieTools - Extension to read the webviewer given cookie
3) hand over the cookie to the web component and open site
now i can open the sites i need and pick out the data i need by responsecontent
it works in my case and so my problem got solved so far 😛
thanks for any idea,
Most Users Ever Online: 114
Currently Browsing this Page:
Guest Posters: 1
Administrators: Hans, lee