定制 nhn-edu/php-dooray 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nhn-edu/php-dooray

Composer 安装命令:

composer require nhn-edu/php-dooray

包简介

Dooray SDK for PHP - Can easily use APIs provided by Dooray! (https://www.dooray.com) service.

README 文档

README

Dooray SDK for PHP - Can easily use APIs provided by Dooray! (https://www.dooray.com) service.

The PHP SDK is provided based on the API documentation at the following URL:

💾 Install

This SDK can be used by using the package manager or downloading the source directly. However, we highly recommend using the package manager.

Via Package Manager

This SDK are registered in two package managers, composer. You can conveniently install it using the commands provided by the package manager. When using composer, be sure to use it in the environment PHP 5.6+ is installed.

composer

$ composer create-project nhn-edu/php-dooray example-app

🔨 Usage

A personal authentication token is required to use the SDK. Follow the steps below to obtain a personal authentication token.

  1. Log in to Dooray PC Web.
  2. Click the cogwheel icon (내설정; My Settings) at the top-right of the screen.
  3. Click the [설정; Settings] button.
  4. Click the API menu and click the "개인 인증 토큰; Personal Authentication Token" menu.
  5. Click the "인증 토큰 생성하기; Generate Authentication Token" button.
  6. Fill in the "용도; Use" field with a suitable description and click the "생성하기; Create" button.
  7. Click the "복사하기; Copy" button to copy the "인증 토큰; Authentication Token" to the clipboard.

Example - Retrieve Project Info

PHP Code

<?php

require ('vendor/autoload.php');

use NhnEdu\PhpDooray\DoorayProjectApi;


$projectApi = new DoorayProjectApi('-- Your Personal Authentication Token Here --');

$project = $projectApi->getProject("-- Your Project ID(Number) Here --");

var_dump($project);

Output Result

object(stdClass)#7 (9) {
  ["id"]=>
  string(19) "(Your Project ID Here)"
  ["code"]=>
  string(5) "@eric"
  ["description"]=>
  string(0) ""
  ["state"]=>
  string(6) "active"
  ["scope"]=>
  string(7) "private"
  ["type"]=>
  string(7) "private"
  ["organization"]=>
  object(stdClass)#8 (1) {
    ["id"]=>
    string(19) "blah blah blah"
  }
  ["wiki"]=>
  object(stdClass)#9 (1) {
    ["id"]=>
    NULL
  }
  ["drive"]=>
  object(stdClass)#10 (1) {
    ["id"]=>
    string(19) "blah blah blah"
  }
}

Example Project

统计信息

  • 总下载量: 26
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2022-02-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固