PHP code example of tizipso / dingtalk

1. Go to this page and download the library: Download tizipso/dingtalk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tizipso / dingtalk example snippets


use DingTalk\Application;

$config = [
    'corp_id' => '',
    'agent_id' => '',
    'app_key' => 'dingwu33fo1fjc0fszad',
    'app_secret' => 'RsuMFgEIY3jg5UMidkvwpzEobWjf9Fcu3oLqLyCUIgzULm54WcV7j9fi3fJlUshk',
    'token' => '',
    'aes_key' => '',
];

$app = new Application($config);