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

zmp-sdk

Package Overview
Dependencies
Maintainers
1
Versions
351
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zmp-sdk - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

2

package.json
{
"name": "zmp-sdk",
"version": "1.4.1",
"version": "1.4.2",
"description": "Zalo Mini App SDK",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -39,2 +39,7 @@ # Class: ZaloMiniAppSDK

## Usage
```
import apis from 'zmp-sdk;
```
## Authentication Methods

@@ -53,3 +58,3 @@

**`example`**
ZMP.apis.getAccessToken().then((res) => {
apis.getAccessToken().then((res) => {
console.log("Success");

@@ -76,3 +81,3 @@ }).catch((error) => {

**`example`**
ZMP.apis.login().then((res) => {
apis.login().then((res) => {
console.log("Success");

@@ -116,3 +121,3 @@ }).catch((error) => {

**`example`**
ZMP.apis.clearStorage({
apis.clearStorage({
prefix: "prefix" // optional

@@ -147,3 +152,3 @@ }).then((res) => {

**`example`**
ZMP.apis.getStorage({
apis.getStorage({
key: "key",

@@ -179,3 +184,3 @@ isPrefix: false

**`example`**
ZMP.apis.getStorageInfo().then((res) => {
apis.getStorageInfo().then((res) => {
console.log("Success");

@@ -202,3 +207,3 @@ }).catch((error) => {

**`example`**
ZMP.apis.removeStorage({
apis.removeStorage({
key: 'key'

@@ -234,3 +239,3 @@ }).then((res) => {

**`example`**
ZMP.apis.setStorage({
apis.setStorage({
key: "key",

@@ -292,3 +297,3 @@ data: "value"

**`example`**
ZMP.apis.setDeviceOrientation({
apis.setDeviceOrientation({
rotate: 0

@@ -325,3 +330,3 @@ }).then((res) => {

**`example`**
ZMP.apis.setNavigationBarColor({
apis.setNavigationBarColor({
color: "#000000"

@@ -356,3 +361,3 @@ }).then((res) => {

**`example`**
ZMP.apis.setNavigationBarLeftButton({
apis.setNavigationBarLeftButton({
buttonType: 1,

@@ -390,3 +395,3 @@ confirmToExit: 1,

ZMP.apis.setNavigationBarTitle({
apis.setNavigationBarTitle({
title: "Current Page"

@@ -423,3 +428,3 @@ }).then((res) => {

**`example`**
ZMP.apis.getUserInfo().then((res) => {
apis.getUserInfo().then((res) => {
console.log("Success");

@@ -426,0 +431,0 @@ }).catch((error) => {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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