You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe it's stupid, but I just started with React and it will be helpful for me: where exactly I should paste my token? I try to change API_KEY but I still don't really understand error about api.json file {Cannot find module '../api.json'}, what should I do to run example?
The text was updated successfully, but these errors were encountered:
Hi @bearjr -- the example directory is for working within the module itself. If you are going to be using the behance-api as a dependency of your project, you should refer to the usage example in the readme https://github.com/Polyneue/behance-api#usage:
constBehance=require('behance-api');// The Behance API moduleconstBe=newBehance(API_KEY);// Instantiate a connection to Behance // Get Projects DataBe.projects({q: 'motorcycle'},function(err,res,data){if(err)throwerr;// Do something with the data received from the APIconsole.dir(data);});
You'll want to swap the API_KEY with whatever your API string is from Behance.
If you just want to run the example, swap line 3 of the example file with:
Maybe it's stupid, but I just started with React and it will be helpful for me: where exactly I should paste my token? I try to change API_KEY but I still don't really understand error about api.json file {Cannot find module '../api.json'}, what should I do to run example?
The text was updated successfully, but these errors were encountered: