0.0.1 • Published 1 month ago

oute-services-user-photos-sdk v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
1 month ago

This module expose helper functions

  • Initialization
  params = {
    url: @server url
    token: @access token
  }
  UserPhotos = require("oute-services-user-photos-sdk")
  user_photos_instance = new UserPhotos(params)

Cache functions

Core functions

  • Delete by ids
  body = {ids: ["ZX7c062wq"]}
  await user_photos_instance.deleteByIds(body)
  • Get list
  query = {project_id: "q-GmTD5-K"}
  await user_photos_instance.getList(query)
  • Save
  body = {
    "_id": "ZX7c062wq",
    "name": "test2",
    "state": "ACTIVE",
    "url": "https://ccc.oute.app/cdata/db_hub/postgres.svg",
    "workspace_id": "ZzBfJMpfQ",
    "project_id" : "q-GmTD5-K"
  }
  await user_photos_instance.save(body)
0.0.1

1 month ago