public async Task RunExample(string[] args)
        {
            _configProvider = new ConfigProvider(args);

            /****初始化连接器****/
            ArApiProvider.Reset(_configProvider.GetAppKey(), _configProvider.GetAppSecret());

            /****登陆****/
            AccountInfo loginAccount = await ArApiProvider.Instance.Account.LoginAsync("13123456789", "123789");

            /****登陆需要设置链接期用户令牌****/
            ArApiProvider.Reset(loginAccount.AuthToken);

            /****绑定手机号****/
            await ArApiProvider.Instance.Account.BindPhoneAsync("13212345689", "123789");

            /****我的信息****/
            AccountInfo accountInfo = await ArApiProvider.Instance.Account.ProfileAsync();

            /****我购买的图录****/
            List <ArAlbum> buyAlbums = await ArApiProvider.Instance.Account.MyBuyAlbumsAsync(1, 200);

            /****我收藏的图录****/
            List <ArAlbum> favAlbums = await ArApiProvider.Instance.Account.MyFavAlbumsAsync(1, 200);

            /****退出****/
            await ArApiProvider.Instance.Account.LogoutAsync();
        }
Example #2
0
        public async Task RunExample(string[] args)
        {
            _configProvider = new ConfigProvider(args);

            /****初始化连接器****/
            ArApiProvider.Reset(_configProvider.GetAppKey(), _configProvider.GetAppSecret());

            /****发送登陆短信验证码****/
            await ArApiProvider.Instance.App.SendLoginSmsAsync("13212345689");

            /****发送绑定手机号短信验证码****/
            await ArApiProvider.Instance.App.SendResetPhoneSmsAsync("13212345689");
        }
Example #3
0
        public async Task RunExample(string[] args)
        {
            _configProvider = new ConfigProvider(args);

            /****初始化连接器****/
            ArApiProvider.Reset(_configProvider.GetAppKey(), _configProvider.GetAppSecret());

            /****登陆并设置AuthToken****/
            AccountInfo loginAccount = await ArApiProvider.Instance.Account.LoginAsync("13123456789", "123789");

            ArApiProvider.Reset(loginAccount.AuthToken);

            /****识别图搜索****/
            var arCard = await ArApiProvider.Instance.Ar.ImageSearchAsync("image_base64_code");

            /****根据授权码获取可激活的图录列表****/
            var albums = await ArApiProvider.Instance.Ar.CanActiveAsync("code_num");
        }
        public async Task RunExample(string[] args)
        {
            _configProvider = new ConfigProvider(args);

            /****初始化连接器****/
            ArApiProvider.Reset(_configProvider.GetAppKey(), _configProvider.GetAppSecret());

            /****登陆并设置AuthToken****/
            AccountInfo loginAccount = await ArApiProvider.Instance.Account.LoginAsync("13123456789", "123789");

            ArApiProvider.Reset(loginAccount.AuthToken);

            /****卡片详情****/
            var arCard = await ArApiProvider.Instance.ArCard.GetAsync("card_num");

            /****卡片扫描记录****/
            var scanCards = await ArApiProvider.Instance.ArCard.ScanHistoryAsync(1, 100);
        }
Example #5
0
        public async Task RunExample(string[] args)
        {
            _configProvider = new ConfigProvider(args);

            /****初始化连接器****/
            ArApiProvider.Reset(_configProvider.GetAppKey(), _configProvider.GetAppSecret());

            /****登陆并设置AuthToken****/
            AccountInfo loginAccount = await ArApiProvider.Instance.Account.LoginAsync("13123456789", "123789");

            ArApiProvider.Reset(loginAccount.AuthToken);

            /****图录详情****/
            var album = await ArApiProvider.Instance.Album.GetAsync("album_num");

            /****图录列表****/
            var albums = await ArApiProvider.Instance.Album.ListAsync(true, "id", 1, 1000);

            /****收藏图录****/
            await ArApiProvider.Instance.Album.FavAsync("album_num");

            /****激活图录****/
            await ArApiProvider.Instance.Album.ActiveAsync("album_num", "code_num");
        }