Skip to content

Instantly share code, notes, and snippets.

@nairihar
Created May 6, 2018 13:51
Show Gist options
  • Save nairihar/4e9fea65dc95b4bc22c78d28b806498d to your computer and use it in GitHub Desktop.
Save nairihar/4e9fea65dc95b4bc22c78d28b806498d to your computer and use it in GitHub Desktop.
Http call using SDK, medium
try {
const news = await getAllNews(input);
} catch (err) {
console.log(err.message); // automatic generated message for getAllNews function
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment