I'm trying to access an API with a HTTP agent.
So far this works fine, as long as I do not have to authenticate.
Now I need to authenticate (with an user.login request) an I receive an auth token.
This token needs to be sent with any further request.
Do I have to create a item with the authentication and save the token? And then create other items to do the real work?
Or, can I do this in one item?
Any suggestions?
So far this works fine, as long as I do not have to authenticate.
Now I need to authenticate (with an user.login request) an I receive an auth token.
This token needs to be sent with any further request.
Do I have to create a item with the authentication and save the token? And then create other items to do the real work?
Or, can I do this in one item?
Any suggestions?
Comment