Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

external api data only #501

Closed
rrubio opened this issue Jan 19, 2017 · 4 comments
Closed

external api data only #501

rrubio opened this issue Jan 19, 2017 · 4 comments

Comments

@rrubio
Copy link

rrubio commented Jan 19, 2017

Hi Guys,

I know how to call an external api from hooks in order to populate my own data. How would I go about calling an external api from my server and return all the data from that endpoint back to my app i.e. never touches my database just a thirdparty call.

@marshallswain
Copy link
Member

Usually the API would publish data on how you would connect. More than likely you would use something like super agent or axios. You could put it in a hook or actually create a service wrapper like Feathers-mailgun.

@daffl
Copy link
Member

daffl commented Jan 19, 2017

You would implement your own service. I wrote about how to proxy to an external API in https://blog.feathersjs.com/using-feathersjs-to-make-your-existing-api-real-time-813f7c3fd892#.ave1gtmq8

@daffl daffl closed this as completed Jan 19, 2017
@rrubio
Copy link
Author

rrubio commented Jan 19, 2017

Brilliant! thank you :-)

@lock
Copy link

lock bot commented Feb 7, 2019

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue with a link to this issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Feb 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants