Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

TheHappyKoala/JSONPromise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

JSONPromise

Promise-based JSONP API

Usage

We will use the Astro-Phys.com Ephemeris API to query for state of mars at January 20th, 1000AD:


import JSONP from './jsonp';

JSONP( 'http://www.astro-phys.com/api/de406/states?date=1000-1-20&bodies=mars&callback=' )
  .then( data => console.log( data ) )
  .catch( error => console.log( error ) );

  

About

Promise-based JSONP API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published