Forum Discussion
EPME
2 years agoFrequent Visitor
Odata feed url repeats parameter
I have a report linked to a OData feed where i pass the API key name as a parameter like this : Source = OData.Feed("https://apiurl.com/" & "/api/v1", null, [ApiKeyName="apikeyname"]) Thi...
Syndicate_Admin
2 years agoAdministrator
You are supposed to include the api key placeholder in the base URL. Please read the documentation again.
- EPME2 years agoFrequent Visitor
I've read both the web service and odata documentation 20 times now and still can't see what I'm doing wrong. I can't find anything about putting it in the base url. It only says to pass it using the ApiKeyName parameter like I do.
- ApiKeyName: If the target site has a notion of an API key, this parameter can be used to specify the name (not the value) of the key parameter that must be used in the URL. The actual key value is provided in the credential
And the example looks exactly like how I do it.
Web.Contents("https://contoso.com/api/customers/get", [ApiKeyName="api_key"])
I can access all other tables perfectly fine, even the one giving me trouble only gives the error after I try to filter it. This just started this week, before that everything worked perfectly .