@eyedea-sockets/postal-address
v0.0.1
Published
Syncano Socket for storing Postal Address type of data
Downloads
8
Readme
Syncano Socket for storing PostalAddress type of data
Main Socket features:
- postal-address/add — add PostalAddress object
- postal-address/update — update PostalAddress object
- postal-address/delete — delete PostalAddress object
Getting Started
Install package in your project:
cd my_project
npm install @syncano/cli --save-dev
npm install @eyedea-sockets/postal-address --save
npx s deploy
Use it:
import Syncano from '@syncano/client'
const s = new Syncano(<instaneName>)
// PostalAddress params
const params = {
addressCountry: 'USA',
addressLocality: 'Mountain View',
streetAddress: '1600 Amphitheatre Pkwy',
postalCode: '94043',
addressRegion: 'CA', // optional
postOfficeBoxNumber: 'PB1234', // optional
telephone: '+1123123123' // optional
}
const suggestions = await s.post('postal-address/add', params)