0.0.16 • Published 6 months ago

oute-services-blog-sdk v0.0.16

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

This module expose helper functions

  • Initialization
  params = {
    url: @server url
    token: @access token
  }
  Blog = require("oute-services-blog-sdk")
  blog_instance = new Blog(params)

Cache functions

Core functions

  • Save route
    body = {
        "title": "npm vs yarn",
        "keywords": ["npm", "yarn"],
        "max_count": 100,
        "target_audience": ["developer"],
        "tones": ["neutral"],
        "blogText": "",
        "workspace_id": "ZzBfJMpfQ",
        "name" : "test content",
        "parent_id" : null,
        "project_id": "1ZXZKMvvE",
        "annotation": "CONTENT"
    }
  await blog_instance.save(body)
  • Find One
  query = {
    "_id": "-dGsrg9x6"
  }
  await blog_instance.findOne(query)
  • list
  query = {
    "title": "npm vs yarn"
  }
  await blog_instance.list(query)
0.0.10

6 months ago

0.0.11

6 months ago

0.0.12

6 months ago

0.0.13

6 months ago

0.0.14

6 months ago

0.0.15

6 months ago

0.0.9

7 months ago

0.0.16

6 months ago

0.0.8

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

1 year ago