BREAKING CHANGE(account): authorization now uses the new Account API

This commit is contained in:
Philipp Kunz 2020-02-19 17:00:31 +00:00
parent a746577945
commit b0fdd520f3

View File

@ -23,11 +23,7 @@ Use TypeScript for best in class instellisense.
```javascript
import * as cflare from '@mojoio/cloudflare';
const myCflareAccount = new cflare.CflareAccount();
testCflareAccount.auth({
email: 'someuser@example.com',
key: 'someLongApiKey'
});
const myCflareAccount = new cflare.CflareAccount('mySuperAwesomeAccountToken');
const myAsyncCflareManagement = async () => {
// get things