Skip to content

Commit

Permalink
fix: README formatting
Browse files Browse the repository at this point in the history
- for that syntax-highlight
  • Loading branch information
khoerling committed Oct 25, 2019
1 parent 36b1cd2 commit b99e498
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,20 @@ $ yarn add shopify-push-notifications

#### *Step 1*   //   Save Token

```
const { token, message } = push('YOUR-STORE.myshopify.com, 'YOUR-SECRET')
const res = await token('exponentpushtoken[xxxxxxxxxxxxxxxxxxxxxx]')
let res = await token('exponentpushtoken[xxxxxxxxxxxxxxxxxxxxxx]')
if (!res.success) console.warn(res.error)
// web or expo token saved
```

#### *Step 2*   //   Push Message

const res2 = await message('TITLE', 'Message body...', {withSome: 'data'})
if (!res2.success) console.warn(res.error)
```
res = await message('TITLE', 'Message body...', {withSome: 'data'})
if (!res.success) console.warn(res.error)
// message broadcasted!
```

<br />
<br />
Expand Down

0 comments on commit b99e498

Please sign in to comment.