Giter VIP home page Giter VIP logo

api_nodejs's Introduction

###明道Node.js 版本的SDK,包含了用户鉴权和几个常用的API调用

此项目可用Webstorm 开发环境打开,依赖的module都进行了声明,在此目录下运行npm 安装即可

npm install

调用API流程

  1. 修改配置文件(config.js)中“appKey”和“appSecret”为您在开放平台申请到的应用令牌信息
  2. 修改配置文件(config.js)中“GetRedirectUrl”,保证此处的回调地址和开放平台填写的Calback_Url回调地址一致
  3. 启动node,运行node index.js 后 ,访问浏览器在config.js配置的host和端口号启动应用, http://host:port/default 即可获取授权
  4. 授权成功后可以访问 /current_user 返回用户信息 或者 /current_project 返回当前公司信息

公有云请到明道开放平台创建应用 http://open.mingdao.com 私有部署请联系管理员创建应用并获取令牌

具体开发指南请见《明道开放平台指南

api_nodejs's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.