Class SaeChannel
SAE Channel 服务
Demo 地址:https://github.com/sinacloud/sae-channel-examples/tree/master/php
<?php $channel = new SaeChannel(); $connection = $channel->createChannel('test',100); $message_content = 'hello,sae'; // Send message $ret = $channel->sendMessage('test',$message_content); ?>
错误码参考: - errno: 0 成功 - errno: 101 参数错误 - errno: 500 服务内部错误
- SaeObject
- SaeChannel
public
|
|
public
string
|
|
public
boolean
|
|
public
string
|
|
public
integer
|
string |
end_
|
#
'http://channel.sae.sina.com.cn:81/v1/'
|
integer |
MAXIMUM_CLIENT_ID_LENGTH_
|
#
256
|
integer |
MAXIMUM_TOKEN_DURATION_SECONDS_
|
#
7200
|
integer |
MAXIMUM_MESSAGE_LENGTH_
|
#
4096
|