File tree Expand file tree Collapse file tree 2 files changed +126
-100
lines changed Expand file tree Collapse file tree 2 files changed +126
-100
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,19 @@ $ composer require exinone/mixin-sdk-php -vvv
29
29
### 例示
30
30
31
31
``` php
32
- // 配置文件格式例示
32
+ // 配置文件格式示例
33
+ // 通过 Mixin 开发者后台的会话密钥部分来生成
33
34
$config0 = [
35
+ "app_id" => "d4155247-xxxx-xxxx-aa8a-775333b12406",
36
+ "session_id" => "7a633a3f-xxxx-xxxx-99b9-ae43c88be4be",
37
+ "server_public_key" => "556b82842exxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxa6d8ad8af3f2649474",
38
+ "session_private_key" => "154cd8dceaxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx24d070b1acc880a13b",
39
+ "spend_key" => "f86d9dd3faxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc64e8bc7c5aef6a0a4", // 注册应用钱包时备份的spend key
40
+ "client_secret" => "fdbe66249axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxcc4519a4ea20d48b7e" // 授权密钥
41
+ ];
42
+
43
+ // 旧版配置文件格式
44
+ $config1 = [
34
45
'mixin_id' => '7000101633',
35
46
'client_id' => '982afd4e-92dd-4430-98cf-d308442ea04d',
36
47
'client_secret' => 'b0a9adf1b358501b1fb6065c6292b09dbc675d5734225f86e0ec14a71d0fd38a',
You can’t perform that action at this time.
0 commit comments