Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import { create } from 'apisauce';
  2.  
  3. const api = create({
  4. baseURL: 'http://blockchain.info',
  5. });
  6.  
  7.  
  8. (async () => {
  9. const response = await api.get("/ticker");
  10. console.log("response: " + response.status);
  11. console.log("status: " + response.ok);
  12. if (response.data.PLN.symbol === "zł") {
  13. console.log("symbol is correct")
  14. }
  15. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement