npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

smartlib-web-sdk

v0.0.5

Published

移动云 API NODEJS SDK

Readme

移动云NODEJS SDK使用说明

移动云nodeJs SDK使用条件:

  1. 从移动云订购页开通相应产品
  2. 获取Access Key ID(AK)和Secret Access Key(SK)对称加密方式验证接口调用者身份。AK和SK由移动云官方颁发给访问者,订购产品后可查看。

移动云API服务会对每个访问的请求进行身份验证,所以都需要在请求中包含签名(Signature)信息。 其中:

AK用于标识访问者的身份。 SK用于对请求签名字符串进行摘要加密,同时也是API服务器端验证签名字符串的密钥,用户应谨慎保管SK。

移动云nodeJs SDK安装

移动云nodeJs SDK支持6.0及以上版本的node,提供以下安装方式:

1、通过Npm安装(推荐)

通过 npm 获取安装是使用 Node.js SDK 的推荐方法,npm 是 Node.js 的包管理工具。关于 npm 详细介绍可参见npm 官网

  1. 执行以下安装命令: npm install smartlib-web-sdk --save
  2. 在您的代码中引用对应模块代码,如下 SDK 示例。

示例


// 导入对应产品模块的models。
import { selfdefinition } from "smartlib-web-sdk/ecloud-nodejs-sdk/api/ocr.js";

  //接口调用
  toBase64() {
      //获取图片
    let files = document.getElementById("upImageFile").files[0];
     //图片转base64格式
    var reader = new FileReader();
    reader.readAsDataURL(files);
    reader.onload = () => {
      this.newBase64 = reader.result.replace(
        /^data:image\/(png|jpg|jpeg);base64,/,
        ""
      );
      // 调用SDK接口
      selfdefinition(
        "AccessKey",
        "SecretAccessKey",
        "Image",
        { Image: this.newBase64, TemplateId: "126222879799902208" }
      ).then((res) => {
        //用户自定义操作
        console.log(res, "sdk");
      });
    };
  },