Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.

Webhook option #14

Open
dagda1 opened this issue Oct 3, 2013 · 2 comments
Open

Webhook option #14

dagda1 opened this issue Oct 3, 2013 · 2 comments
Milestone

Comments

@dagda1
Copy link

dagda1 commented Oct 3, 2013

Is it possible to supply the webhook to handle 202 status codes?

For example I might submit a request like this:

https://api.fullcontact.com/v2/[email protected]&webhookUrl=http://api/webhookk&webhookId=3&apiKey=xxx

FullContact can then call my endpoint when it has completed the request.

I don't see in the code where this is possible but perhaps I am missing something.

@dagda1
Copy link
Author

dagda1 commented Oct 3, 2013

I got round this by setting the endpoint with my query string:

FullContact.configure do |config|
  config.api_key = "xxxx"
  config.endpoint = "https://api.fullcontact.com/v2/?webhookUrl=http://myapi.com/webhook&webhookBody=json"
end

Faraday parses the querystring and appends it to the request url.

This works but it would be nice to have actual options for this.

@dglancy
Copy link

dglancy commented Mar 5, 2014

+1 for this feature

@Xorlev Xorlev modified the milestones: 0.7.x, 0.10.x Nov 25, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants