We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am integrating the authentication/ login screen using Jasoneete.
"https://www.jasonbase.com/things/1xWK.json"
Trying to set the headers with "content-type": "application/json" but unable to update the same, by default it is "application/x-www-form-urlencoded".
Need to send json data using POST request
Below is my code snippet
"text": "Login", "action": { "type": "$network.request", "options": { "url": "https:///employer_login.json", "method": "post", "data": { "name": "{{$get.email}}", "pass": "{{$get.password}}" }, "data_type": "json", "content_type": "json" }, "success": { "type": "$util.banner", "options": { "title": "{{$jason.status.message}}" }, "success": { "type": "$render" }, "error": { "type": "$util.alert", "options": { "title": "Error setting global" } } }, "error": { "type": "$util.alert", "options": { "title": "Error", "description": "Email or Password is incorrect" } },
The text was updated successfully, but these errors were encountered:
This is a defect in documentation.
content_type is used only in header. The _request function needs a big refactoring...
Check out here https://github.com/Jasonette/JASONETTE-Android/blob/develop/app/src/main/java/com/jasonette/seed/Action/JasonNetworkAction.java#L120
Sorry, something went wrong.
No branches or pull requests
I am integrating the authentication/ login screen using Jasoneete.
"https://www.jasonbase.com/things/1xWK.json"
Trying to set the headers with "content-type": "application/json" but unable to update the same, by default it is "application/x-www-form-urlencoded".
Need to send json data using POST request
Below is my code snippet
"text": "Login",
"action": {
"type": "$network.request",
"options": {
"url": "https:///employer_login.json",
"method": "post",
"data": {
"name": "{{$get.email}}",
"pass": "{{$get.password}}"
},
"data_type": "json",
"content_type": "json"
},
"success": {
"type": "$util.banner",
"options": {
"title": "{{$jason.status.message}}"
},
"success": {
"type": "$render"
},
"error": {
"type": "$util.alert",
"options": {
"title": "Error setting global"
}
}
},
"error": {
"type": "$util.alert",
"options": {
"title": "Error",
"description": "Email or Password is incorrect"
}
},
The text was updated successfully, but these errors were encountered: