Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pushprotocol/restapi

Package Overview
Dependencies
Maintainers
1
Versions
251
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pushprotocol/restapi - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

CHANGELOG.md

@@ -5,2 +5,6 @@ # Changelog

## [0.0.3](https://github.com/ethereum-push-notification-service/sdk/compare/restapi-0.0.2...restapi-0.0.3) (2022-10-05)
## [0.0.2](https://github.com/ethereum-push-notification-service/sdk/compare/restapi-0.0.1...restapi-0.0.2) (2022-10-05)

@@ -7,0 +11,0 @@

2

package.json
{
"name": "@pushprotocol/restapi",
"version": "0.0.2",
"version": "0.0.3",
"type": "commonjs",

@@ -5,0 +5,0 @@ "publishConfig": {

# restapi
This package gives access to EPNS backend APIs
This package gives access to Push backend APIs

@@ -116,3 +116,3 @@ ## How to use in your app?

const channelsData = await PushAPI.channels.search({
query: 'epns', // a search query
query: 'push', // a search query
page: 1, // page index

@@ -155,3 +155,3 @@ limit: 20, // no of items per page

| userAddress* | string | - | user address (CAIP) | |
| verifyingContractAddress | string | - | EPNS communicator contract address|
| verifyingContractAddress | string | - | Push communicator contract address|
| onSuccess | function | - | on success callback |

@@ -183,3 +183,3 @@ | onError | function | - | on error callback |

| userAddress* | string | - | user address (CAIP) | |
| verifyingContractAddress | string | - | EPNS communicator contract address|
| verifyingContractAddress | string | - | Push communicator contract address|
| onSuccess | function | - | on success callback |

@@ -191,3 +191,3 @@ | onError | function | - | on error callback |

<sup>*</sup>EPNS communicator contract address
<sup>*</sup>Push communicator contract address
```

@@ -457,3 +457,3 @@ ETH Mainnet - 0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa

#### **parsing notifications**
Utils method to parse raw EPNS Feeds API response into a pre-defined shape as below.
Utils method to parse raw Push Feeds API response into a pre-defined shape as below.
```typescript

@@ -460,0 +460,0 @@ // fetch some raw feeds data

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc