Coder Social home page Coder Social logo

xdnice / openapi-demo-java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from open-dingtalk/openapi-demo-java

0.0 2.0 0.0 15.78 MB

钉钉开放平台企业应用接入Demo

Home Page: https://open-doc.dingtalk.com/docs/doc.htm?treeId=367&articleId=106813&docType=1

Java 55.58% CSS 1.18% HTML 20.94% JavaScript 22.30%

openapi-demo-java's Introduction

软件依赖

  • java version "1.7"
  • maven3

Getting Started

  1. 将工程clone到本地:git clone https://github.com/open-dingtalk/openapi-demo-java.git
  2. 使用IDE导入工程,比如eclipse点击File->import(推荐使用maven导入), IDEA点击File->New->Project from Existing Sources..., 文件编码都是UTF-8
  3. 打开工程的Env.java文件,填入企业的CORP_ID,APP_KEY,APP_SECRET(参考文档:https://open-doc.dingtalk.com/microapp/serverapi2/eev437)

    public static final String CORP_ID = "your CORP_ID";
    public static final String APP_KEY = "your APP_KEY";
    public static final String APP_SECRET = "your SECRET";
  1. 部署工程,建议使用mvn -DskipTests=true jetty:run运行或者IDE中的maven插件运行
  2. OA后台创建微应用,并把工程的首页地址/index.jsp填到微应用首页地址中。 如何创建微应用?

DEMO具体实现

1. jsapi权限验证配置流程

请查看文档

  • 前端文件:WebContent/index.jsp,WebContent/javascripts/demo.js
  • 后端文件:链接

2.免登流程

请查看文档

  • 前端文件:WebContent/javascripts/demo.js和
  • 后端文件:链接

3.部门的操作 请查看文档

4.员工的操作 请查看文档

5.通讯录事件(比如用户的离职,部门的删除)回调 请查看文档

6.发送消息 请查看文档

openapi-demo-java's People

Contributors

opendingtalk avatar

Watchers

 avatar  avatar

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.