public async Task UploadFile()
        {
            var households = await client.GetHouseholds();

            var tonies = await client.GetCreativeTonies(households[0].Id);

            var tonie = tonies.First(t => t.Name == "Test");

            var uploadRequest = new UploadFilesToCreateiveTonieRequest
            {
                CreativeTonieId = tonie.Id,
                HouseholdId     = households[0].Id,
                TonieName       = "Test 2",
                Entries         = new[]
                {
                    new UploadFilesToCreateiveTonieRequest.Entry
                    {
                        File = File.OpenRead("TestData/1.m4a"),
                        Name = "Kapitel 1"
                    }
                }
            };

            var response = await client.UploadFilesToCreateiveTonie(uploadRequest);
        }
Пример #2
0
 public Task <CreativeTonie> UploadFilesToCreateiveTonie(UploadFilesToCreateiveTonieRequest request) => client.UploadFilesToCreateiveTonie(request);