2.1.0 • Published 30 days ago

@plentra/sphereclient v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
30 days ago

Getting started

Install npm i @plentra/sphereclient Import import { SphereClient } from '@plentra/sphereclient'; Initialization let sphereClient = new SphereClient("YOUR-APP-KEY")

Get Home launcher (with items) Home launcher is the main launcher of your app containing launcher items that link to either items belonging to a particular category or a sub launcher. It also acts as a source for special features such as popup and message (It is intended to launch during the initial launch of your application).

Accessing the home launcher Home launcher is the main launcher of your app containing launcher items that link to either items belonging to a particular category or a sub launcher. It also acts as a source for special features such as popup and message (It is intended to launch during the initial launch of your application).

sphereClient.getHome({
    onResult( appName  ,  appIcon  ,  totalItemCount  ,  itemsInThisPage  ,  itemsPerPage  ,   items ){
        //do on result
     },
     onLoading(){
        //do when loading
     },
     onLoadfinished(){
        //do when loading finished
     },
     onPopup( popupTitle  ,  popupMessage ){
        //do when popup
     },
     onAnnouncement( announcementBody ){
        //do when announcement
     },
     onMessage( messageTitle  ,  messageBody ){
        //do when message
     },
     onAppLocation( appLocation  ,  latitude  ,  longitude  ){
        //do when app location
     },
     onNextPage(){
        //do when next page exists
     },
     onHomeCover( cover ){
        //do when there is a home cover
     },
     onEmpty(appName , appIcon){
        //do when home launcher items are empty
     },
     onError(error){
        //do when error
     },
     onUnderConstruction(){
        //do when under construction
     },
     onNotActive(){
        //do when app is not active
     },
     onNotExist(){
        //do when app does not exist
     },
     onNotFound(){
        //do when page not found
     },
     onNotAcceptable(){
        //do when there is illegal client request
     },
     onBadRequest(){
        //do when there is bad request from client
     },
     onNoNextPage(){
        //do when there is no next page
     },
  }
)

please refer to the complete JavaScript documentation at https://sphere.plentratechnologies.com/jsdocs/.

2.1.0

30 days ago

2.0.0

2 months ago

1.4.26

2 months ago

1.4.25

3 months ago

1.4.24

3 months ago

1.4.23

4 months ago

1.4.22

4 months ago

1.4.20

4 months ago

1.4.21

4 months ago

1.4.19

4 months ago

1.4.18

4 months ago

1.4.6

9 months ago

1.4.5

9 months ago

1.4.4

9 months ago

1.4.3

9 months ago

1.4.2

9 months ago

1.4.1

9 months ago

1.4.0

9 months ago

1.3.10

10 months ago

1.3.9

10 months ago

1.3.8

11 months ago

1.3.7

11 months ago

1.4.9

9 months ago

1.4.11

9 months ago

1.4.8

9 months ago

1.4.10

9 months ago

1.4.7

9 months ago

1.4.13

8 months ago

1.4.12

9 months ago

1.4.15

8 months ago

1.4.14

8 months ago

1.4.17

7 months ago

1.4.16

8 months ago

1.3.6

11 months ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.2.8

1 year ago

1.1.9

1 year ago

1.2.7

1 year ago

1.1.8

1 year ago

1.3.5

1 year ago

1.2.6

1 year ago

1.1.7

1 year ago

1.3.4

1 year ago

1.2.5

1 year ago

1.1.6

1 year ago

1.3.3

1 year ago

1.2.4

1 year ago

1.1.5

1 year ago

1.3.2

1 year ago

1.2.3

1 year ago

1.1.4

1 year ago

1.3.1

1 year ago

1.2.2

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.1.2

1 year ago

1.2.9

1 year ago

1.0.0

1 year ago