DEVELOPER CENTER
...
User Connection
List (Multiple)
1 min
works only where multiple user connections is implemented returns all the virtual connections with the names of the providers and map id which should be used for all oauth calls instead of the user id { "tab" "request", "url" "https //labs pathfix com/api/connection/all/virtual", "name" "list virtual connections for a user", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[ { "kind" "required", "name" "user id", "type" "string", "description" "identifier of your currently logged in user" }, { "kind" "required", "name" "public key", "type" "string", "description" "your pathfix application's public key" }, { "kind" "required", "name" "private key", "type" "string", "description" "your pathfix application's private key" } ], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "2gx9jwlvhqofw5lvzrjuh", "code" "{\n\t\\"rows\\" \[{\n\t\t\\"pincstatus\\" \\"success\\",\n\t\t\\"callid\\" \\"9333921d 5175 4eed ab19 3c260d23fdsfdf\\",\n\t\t\\"data\\" {\n\t\t\t\\"rows\\" \[{\n\t\t\t\t\\"name\\" \\"mailchimp info\@acmesaas com\\",\n\t\t\t\t\\"map id\\" \\"info\@acmesaas com 67a82102 1853 bbe7 33d3 1e5661e39817\\",\n\t\t\t\t\\"provider\\" \\"mailchimp\\"\n\t\t\t}, {\n\t\t\t\t\\"name\\" \\"acme info\@acmesaas com\\",\n\t\t\t\t\\"map id\\" \\"info\@acmesaas com 678564b0 6dc8 a836 05a8 b8c18c6a74a8\\",\n\t\t\t\t\\"provider\\" \\"slackv2\\"\n\t\t\t}, {\n\t\t\t\t\\"name\\" \\"test account\\",\n\t\t\t\t\\"map id\\" \\"info\@acmesaas com\\",\n\t\t\t\t\\"provider\\" \\"slackv2\\"\n\t\t\t}]\n\t\t}\n\t}]\n}", "language" "200" }, { "id" "lqnc5ghoo9rr 00v6lt1p", "code" "unauthorized", "language" "401" } ], "selectedlanguageid" "2gx9jwlvhqofw5lvzrjuh" }, "examples" { "languages" \[ { "id" "mfp5t4wffrbmqf vfpp9f", "code" "curl request get\n url https //labs pathfix com/api/connection/all/virtual \n header 'accept application/json'", "language" "curl" }, { "id" "5 e482zvlqwkyk9nfvga3", "code" "fetch(\\"https //labs pathfix com/api/connection/all/virtual\\", {\n \\"method\\" \\"get\\",\n \\"headers\\" {\n \\"accept\\" \\"application/json\\"\n }\n})\n then(response => {\n console log(response);\n})\n catch(err => {\n console error(err);\n});", "language" "javascript" }, { "id" "brcvpxhpxu5y6za5k7pza", "code" "const fetch = require('node fetch');\n\nlet url = 'https //labs pathfix com/api/connection/all/virtual';\nlet options = {\n method 'get', \nheaders {\n accept 'application/json',\n }\n};\nfetch(url, options)\n then(res => res json())\n then(json => console log(json))\n catch(err => console error('error ' + err));", "language" "nodejs" }, { "id" "ioufvwgqlzs3paq8xjeil", "code" "import requests\n\nurl = \\"https //labs pathfix com/api/connection/all/virtual\\"\nheaders = {\\"accept\\" \\"application/json\\"}\nresponse = requests request(\\"get\\", url, headers=headers)\nprint(response text)", "language" "python" }, { "id" "4hgly4psft cafdkqsqjp", "code" "const fetch = require('node fetch');\n\nlet url = 'https //labs pathfix com/api/connection/all/virtual';\nlet options = {method 'get', headers {accept 'application/json'}};\nfetch(url, options)\n then(res => res json())\n then(json => console log(json))\n catch(err => console error('error ' + err));", "language" "ruby" } ], "selectedlanguageid" "mfp5t4wffrbmqf vfpp9f" }, "description" "this api will give you access to all the virtual connections for a specific user\n", "currentnewparameter" { "label" "query parameter", "value" "queryparameters" } }