DEVELOPER CENTER
General
Endpoints
4min
pathfix has a single pattern for calls to all providers changing the user id and public key provides the endpoint with the instruction to invoke the correct access token needed to to complete the api request the list of supported oauth providers names can be found provider reference docid\ z26cdo6omb40w2fymu ut post https //labs pathfix com/oauth/method/{providername}/call example an example of how a call will be made to google calendar to get a list of calendars for the connected user assumptions your application user is "jane doe\@example com" "jane doe\@example com" your pathfix application public key is "aaaa bbbb cccc dddd" "aaaa bbbb cccc dddd" the user jane doe\@example com has previously logged into your solution and connected their google calendar function pushmessage() { //build the payload //payload and header can be excluded in they do not carry any information var pfxpayload = { "url" "https //www googleapis com/calendar/v3/users/me/calendarlist", "method" "get", "payload" {}, "headers" {} }; //build the url var pfxurl = new url("https //labs pathfix com/oauth/method/googlecalendar/call"); pfxurl searchparams set("user id", "jane doe\@example com"); pfxurl searchparams set("public key", "aaaa bbbb cccc dddd"); //post to pathfix $ post(pfxurl,json stringify(pfxpayload),(response)=>{console log(response)}); }` success response { "rows" \[ { "pincstatus" "success", "statuscode" 200, "contenttype" "application/json", "data" { } } ] } the data returned from the provider (google calendar) will be container in the rows\[0] data documentation about the information in returned can be found at the provider api documentation error response { "rows" \[ { "pincstatus" "error", "statuscode" "http status code", "errortype" "error types", "inernalerror" "" } ] } list of error types and their description can be found here error codes docid\ uwwe7r emoy07swnhjydw