We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think it would be helpfull to add a little bit more lines into the code lines what need to run a nodejs script.
The complete set of lines you need to run the script in an app.js are:
const fetch = require('node-fetch'); const { link } = require('@blockmason/link-sdk');
const project = link({ clientId: 'ADD YOUR CLIENT ID HERE', clientSecret: 'ADD YOUR SECRET ID HERE' }, { fetch });
async function getMessage(){ const { message } = await project.get('/helloWorld', { message: 'Hello, world!' }); console.log(message); }
getMessage();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I think it would be helpfull to add a little bit more lines into the code lines what need to run a nodejs script.
The complete set of lines you need to run the script in an app.js are:
const fetch = require('node-fetch');
const { link } = require('@blockmason/link-sdk');
const project = link({
clientId: 'ADD YOUR CLIENT ID HERE',
clientSecret: 'ADD YOUR SECRET ID HERE'
}, {
fetch
});
async function getMessage(){
const { message } = await project.get('/helloWorld', {
message: 'Hello, world!'
});
console.log(message);
}
getMessage();
The text was updated successfully, but these errors were encountered: