Skip to content

Instantly share code, notes, and snippets.

@ho0527
Last active February 24, 2024 12:18
Show Gist options
  • Select an option

  • Save ho0527/c159112fb7aaaf8934877fa8dcc08d3e to your computer and use it in GitHub Desktop.

Select an option

Save ho0527/c159112fb7aaaf8934877fa8dcc08d3e to your computer and use it in GitHub Desktop.
ajax("POST","https://exp.com/path/to/link",function(event,data){
console.log(data)
},JSON.stringify({
"data": "data"
}),[
["Content-Type","application/json"],
["Authorization","Bearer "+token]
],function(event){},[
function(event){},function(event){},function(event){},function(event){}
],[
["error",function(event){ console.log("error") }]
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment