How to use the tencentcloud-sdk-nodejs.nlp function in tencentcloud-sdk-nodejs

To help you get started, we’ve selected a few tencentcloud-sdk-nodejs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github airingursb / 2life-server / src / routes / notes.js View on Github external
import {
  MESSAGE,
  validate,
  JiGuangPush,
  NLP_ID,
  NLP_SECRET
} from '../config'

import { wechatContentCheck, wechatImgCheck } from '../utils'

import Promise from 'Promise'

const tencentcloud = require('tencentcloud-sdk-nodejs')

const NlpClient = tencentcloud.nlp.v20190408.Client
const models = tencentcloud.nlp.v20190408.Models

const Credential = tencentcloud.common.Credential
const ClientProfile = tencentcloud.common.ClientProfile
const HttpProfile = tencentcloud.common.HttpProfile

const router = express.Router()

/* notes/publish
 * 该接口弃用,仅用于兼容2.0.8以下版本(20180726)
 */
router.post('/publish', (req, res) => {

  const {
    uid,
    token,
github airingursb / 2life-server / src / routes / notes.js View on Github external
import {
  MESSAGE,
  validate,
  JiGuangPush,
  NLP_ID,
  NLP_SECRET
} from '../config'

import { wechatContentCheck, wechatImgCheck } from '../utils'

import Promise from 'Promise'

const tencentcloud = require('tencentcloud-sdk-nodejs')

const NlpClient = tencentcloud.nlp.v20190408.Client
const models = tencentcloud.nlp.v20190408.Models

const Credential = tencentcloud.common.Credential
const ClientProfile = tencentcloud.common.ClientProfile
const HttpProfile = tencentcloud.common.HttpProfile

const router = express.Router()

/* notes/publish
 * 该接口弃用,仅用于兼容2.0.8以下版本(20180726)
 */
router.post('/publish', (req, res) => {

  const {
    uid,
    token,
    timestamp,