您的位置:首页 > 其它

免费无限制的公有云服务Bmob之一

2014-08-22 22:54 288 查看
Bmob网站

void Signup()
    {
        BmobUser user = new BmobUser();
        user.username = "111111";
        user.password = "123456789";
        user.email = "111111@qq.com";

        Bmob.Signup<BmobUser>(user, (resp, exception) =>
        {
            if (exception != null)
            {
                print("注册失败, 失败原因为: " + exception.Message);
                return;
            }

            print("注册成功");
        });
    }

    void Login()
    {
        Bmob.Login<BmobUser>("111111", "123456789", (resp, exception) =>
        {
            if (exception != null)
            {
                print("登录失败, 失败原因为: " + exception.Message);
                return;
            }
            print("登录成功, 当前用户对象Session: " + BmobUser.CurrentUser.sessionToken);
        });
    }


<span style="white-space:pre">		</span>Login();

                    Bmob.Create("User", so, (resp, exception) =>
                    {
                        if (exception != null)
                        {
                            print("保存失败, 失败原因为: " + exception.Message);
                            return;
                        }

                        print("保存成功, @" + resp.createdAt);
                    });




看起来简单易用,好像我没有申请认证,所以……

下次继续……
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: