bitcoin-info-action | App for the google assistant that give you information
kandi X-RAY | bitcoin-info-action Summary
kandi X-RAY | bitcoin-info-action Summary
App for the google assistant that give you information on bitcoin (e.g. price, market cap etc')
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of bitcoin-info-action
bitcoin-info-action Key Features
bitcoin-info-action Examples and Code Snippets
Community Discussions
Trending Discussions on bitcoin-info-action
QUESTION
I am deploying https://github.com/greenido/bitcoin-info-action with instructions from https://codelabs.developers.google.com/codelabs/your-first-action-on-google-with-webhook/#0
When I use the Webhook URL provided in the example, it works fine. When I build and deploy using the code myself for the webhook , it does not generate function URL.
Here are the steps:
- Clone the Git Repo https://github.com/greenido/bitcoin-info-action
- Do a firebase init Do a firebase deploy (install all modules as needed)
- I have not changed the index.js , reviewed the answers at Can't find the function url for Firebase webhook in Google Assistant tutorial and others.
I have checked the firebase console and functions on the left menu and I do not find a URL, instead instructions on deploy (same that I used )
Here is the output of firebase deploy:
...ANSWER
Answered 2018-Jan-01 at 15:56The problem is that the code was written for Google Cloud Functions (GCF) (as Ido notes in his comment), while you're trying to deploy it with Cloud Functions for Firebase (CFF or GCFF). While CFF is built on top of GCF, there are some slight differences in how you register the function itself.
With GCF you need to:
- Export the function
- Upload the code to GCF (either using the
gcloud
command line tool or using the console) - If you used the console, add the function
While with GCFF you need to:
- Require the
firebase-functions
library in your code (usually with something likeconst functions = require('firebase-functions');
) - Export the results of
functions.https.onRequest(...)
in your code - Deploy with
firebase deploy
I've submitted a pull request for Ido to change his code (https://github.com/greenido/bitcoin-info-action/pull/4) or you can just pull it from master at https://github.com/afirstenberg/bitcoin-info-action.
QUESTION
I want to deploy this example on glitch. I've added package.js and index.js to my glitch project and built successfully.
However, the code is missing a section to listen for HTTPS requests. In most node.js/express webapps, there is code to indicate which paths trigger which functions, but this is missing from the example. Can you explain to me how it should work and why that part is missing from this example?
...ANSWER
Answered 2017-Nov-17 at 00:45It's not clear what do you mean by "the code is missing a section to listen" as the only main feature of index.js is to listen to requests and return information.
I suggest you check index.js and make sure that you getting requests to your end point on glitch.
Also, it would be helpful if you can share your glitch project over here at SO so we could see what you are doing. Btw, you might want to double check that you have all the packages
I also created this simple example on Glitch - It's returning the current bitcoin price. Feel free to remix it and use the code there for your own action. Good luck!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install bitcoin-info-action
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page