优步没有取得产品

时间:2017-11-20 11:20:33

标签: ios swift uber-api

我想在我的iOS应用程序中集成uber。但是我无法获取产品。我使用carthage下载框架。但我的回答如下所示。我们在哪里设置基本网址沙箱。我无法找到这个。

让loginManager = LoginManager()             loginManager.login(requestedScopes:[。request,.profile],presentsViewController:self,completion:{accessToken,error in

[HttpPost]
        [Route("upload")]
        public async Task<IActionResult> Upload([FromForm] FileUploadViewModel model, [FromForm] string member_code)
        {
            var file = model.File;

            if (file.Length > 0)
            {
                string path = Path.Combine(_env.WebRootPath, "uploadFiles/member_files/" + member_code);
                bool exists = System.IO.Directory.Exists(path);

                if (!exists)
                    System.IO.Directory.CreateDirectory(path);

                using (var fs = new FileStream(Path.Combine(path, file.FileName), FileMode.Create))
                {
                    await file.CopyToAsync(fs);
                }
            }

            return clsCommonFunctions.ConstructFileUploadResponse(clsConfig.status_success, file.FileName);
        }

0 个答案:

没有答案