问题描述
{"error":"organization_application_not_found","timestamp":1448352204719,"duration":0,"exception":"org.apache.usergrid.rest.exceptions.OrganizationApplicationNotFoundException","error_description":"Could not find application for tangming/feicuiyushi from URI: tangming/feicuiyushi/users"}
解决方案
你的url写错了吧,怎么写的? 调用哪个接口
解决方案二:
class Easemob { private $client_id; //环信客户端id private $client_secret; //环信客户端秘钥 private $org_name; //企业管理员名称 private $app_name; //应用程序名称 private $url; //链接环信服务器url地址 /** * 初始化参数 * * @param array $options * @param $options['client_id'] * @param $options['client_secret'] * @param $options['org_name'] * @param $options['app_name'] */ public function __construct($options) { $this->client_id = isset ( $options ['client_id'] ) ? $options ['client_id'] : ''; $this->client_secret = isset ( $options ['client_secret'] ) ? $options ['client_secret'] : ''; $this->org_name = isset ( $options ['org_name'] ) ? $options ['org_name'] : ''; $this->app_name = isset ( $options ['app_name'] ) ? $options ['app_name'] : ''; if (! empty ( $this->org_name ) && ! empty ( $this->app_name )) { $this->url = 'https://a1.easemob.com/' . $this->org_name . '/' . $this->app_name . '/'; } } /** * 开放注册模式 * * @param $options['username'] 用户名 * @param $options['password'] 密码 */ public function openRegister($options) { $url = $this->url . "users"; $result = $this->postCurl ( $url, $options, $head = 0 ); return $result; }
解决方案三:
把你的URL打印出来看一下。