typed-apis
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "typed-apis", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Unified JavaScript APIs from various providers", | ||
"keywords": [ | ||
"google-api", | ||
"google-login", | ||
"facebook-api", | ||
"facebook-login", | ||
"google-maps-api" | ||
], | ||
"repository": "https://github.com/stefankorun/typed-apis", | ||
@@ -6,0 +13,0 @@ "main": "dist/index.js", |
@@ -14,3 +14,2 @@ # Typed APIs | ||
### Installation | ||
> :exclamation: Pending `npm` publish - not available yet | ||
@@ -23,9 +22,11 @@ npm install typed-apis --save | ||
import {Google} from 'typed-apis' | ||
Google.load({apiKey: 'public-api-key'}).then(Google => { | ||
Google.getAuth2().signIn().then(GoogleUser => { | ||
console.log('GoogleUser', GoogleUser) | ||
}) | ||
}) | ||
```javascript | ||
import {Google} from 'typed-apis' | ||
Google.load({apiKey: 'public-api-key'}).then(Google => { | ||
Google.getAuth2().signIn().then(GoogleUser => { | ||
console.log('GoogleUser', GoogleUser) | ||
}) | ||
}) | ||
``` | ||
Sorry, the diff of this file is too big to display
2395563
31