Login with app | Mobile Apps | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Login with app
No permission to create posts
August 22, 2017
6:55 am
Avatar
hilgi
New Member
Members
Forum Posts: 3
Member Since:
August 22, 2017
sp_UserOfflineSmall Offline

Hi everyone,

 

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

https://thingspeak.com/login

and tried to get all informations to login without original thingspeak site, i just got this:

https://thingspeak.com/users/sign_in&utf8=%E2%9C%93&authenticity_token=ejO5hG4yjznTIPqLMnRVUdVQZ1GunMusmCH5I9EJLtw=&user[login]=myemail%40adress.com&user[password]=mypassword&commit=Sign+In

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 Confused

-im not that approved in coding

 

-> plz can someone give me a hint to get this run?

 

greetings, hilgi

August 22, 2017
2:21 pm
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 287
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

Hilgi,

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.

August 25, 2017
5:14 pm
Avatar
hilgi
New Member
Members
Forum Posts: 3
Member Since:
August 22, 2017
sp_UserOfflineSmall Offline

hi cstapels

 

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?

im just triying this extensoin: WebViewTools Extension, maybe i can MacGyverCool that problem 😉

 

greets and thanks for any idea

hilgi

August 28, 2017
9:51 am
Avatar
hilgi
New Member
Members
Forum Posts: 3
Member Since:
August 22, 2017
sp_UserOfflineSmall Offline

Hi,

 

i had success... 🙂

 

Maybe it is possible to do it as i wanted it to do, but i found another solution.

 

SolutionImage Enlarger

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,

greetz hilgi

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online: samdavies
9 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

Lakshmanaprakash S B, bettetj60, ronnievw3, bessiesj18, Pavan kumar, Williampup

Administrators: Hans: 387, lee: 457