0.2.4 • Published 6 years ago

@eyedea-sockets/user-profile v0.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

Syncano Socket for User Profile

Syncano Socket CircleCI branch Codecov branch JavaScript Style Guide npm license

Main Socket features:

  • user-profile/find — search for a user by ID
  • user-profile/my — get your own user data
  • user-profile/update — update your user data
  • user-profile/remove-image — remove avatar image
  • user-profile/update-image — update avatar image

Getting Started

Install package in your project:

cd my_project
npm install @syncano/cli --save-dev
npm install @eyedea-sockets/user-profile --save
npx s deploy

Use it:

import Syncano from @syncano/client

const s = new Syncano(<instaneName>)

// Search for a user
const params = {
  id: 12345
}
const invitationStatus = await s.get('user-profile/find', params)