Hello!
I'm trying to create a custom connector in powerapps. I've read and seen that powerapps is meant to automatically detect variables in sample URLs and json responses. This is all fine and good, I've seen examples of it in video's. However, its not working for me, and I'm not sure what I'm doing wrong (Very likely a formatting issue?)
This is what I use as my sample import:
I've also tried it like this:
I've ALSO tried this (accounting for the base url already input into powerapps)
This is the background from the API documentation showing that both the [date] and the [user-id] are supposed to be variables
This is the result I get after importing from the sample URL (NO VARS):
Note: The address in the URL bar will change depending on what I put in, however, it never reads the vars
Can anyone weigh in on why its not detecting those variables? and how I can fix that?
Cheers,
AFreezinCanadian
Solved! Go to Solution.
Figured it out!
Powerapps/The Swagger Editor will only accept path variables if they are defined in the path using "{}"
so, by using the URL sample of "https://api.fitbit.com/1/user/{user-id}/activities/date/{date}.json" I got it to work. See the difference being the curly braces instead of the squared brackets.
Cheers,
AColdCanadian
Sorry, third screenshot didn't go for some reason:
"I've ALSO tried this (accounting for the base url already input into powerapps)"
Anyone have any ideas on this?
Thanks!
A(Cold/Freezin)Canadian
Figured it out!
Powerapps/The Swagger Editor will only accept path variables if they are defined in the path using "{}"
so, by using the URL sample of "https://api.fitbit.com/1/user/{user-id}/activities/date/{date}.json" I got it to work. See the difference being the curly braces instead of the squared brackets.
Cheers,
AColdCanadian
User | Count |
---|---|
151 | |
94 | |
85 | |
77 | |
58 |
User | Count |
---|---|
193 | |
175 | |
105 | |
96 | |
90 |