Cannabis strain and dispensary info

Log in to Vote
6
6 Votes • 6 Comments
source: https://developer.leafly.com/

This will provide a service to cannabis consumers, whether medicinal or recreational.

Privacy is very important for these individuals. Even in states where it is legal medicinally or recreationally since it is still federally illegal.
• posted 3 years and 10 months ago • type: Spice (API calls) Needs Source Suggestions

anonymous
This is a great idea!

I've taken a look at the API documentation and it requires the sending of the API key and secret via HTTP headers which is not possible using a Spice type of DuckDuckGo Instant answers.

Sadly another API will need to be used or the ability to send headers added to added to Spices :D

Thanks
posted by <hidden> • 3 years and 10 months ago Link
jkanarek
Any ideas for alternate APIs?
posted by jkanarek Staff3 years and 10 months ago Link
Moollaza
Sometimes if you reach out to the API provider and explain the use case (a DuckDuckGo Instant Answer) they're willing to make adjustments so we can use their API. I suggest you shoot them an email and see what they say!
posted by Moollaza Staff3 years and 10 months ago Link
K3ARN3Y
I will reach out.
posted by K3ARN3Y 3 years and 10 months ago Link
K3ARN3Y
Do we only need an endpoint that doesn’t require the auth headers?

Looks like they are down to provide that.

Let me know yes or no so I can confirm with them and get the info.
posted by K3ARN3Y 3 years and 10 months ago Link
Moollaza
Hey sorry about the delay,

The problem is that we're not able to set headers in our requests right now, but we can totally supply an API key as a query param. e.g.
Code:
website.com/api?q=query&apikey=abc123


If they can give us an API key so we can perform authenticated searches in that manner, or if they can create a special undocumented endpoint for us it would be great!
posted by Moollaza Staff3 years and 10 months ago Link