chakram icon indicating copy to clipboard operation
chakram copied to clipboard

How to send params to post call?

Open kagalenitin opened this issue 7 years ago • 0 comments

I am trying to call a URL with multiple parameters. I don't know if there is a better way in chakram to call it:

e.g. https://somesite.com/page1/token?access_type=user&username=admin&password=passw

Currently, I am passing the parameters as:

var params = "access_type=user&username=admin&password=passw" and appending to my url
var fullURL = "https://somesite.com/page1/token?"+ params

My question is, can we set params in a better way or what I am doing is the only way to pass it.

kagalenitin avatar Oct 17 '17 05:10 kagalenitin