Search found 2 matches

by xzar90
Thu Jan 19, 2023 2:17 pm
Forum: Mod portal Discussion
Topic: [Released] Mod Upload API
Replies: 5
Views: 2324

Re: [Released] Mod Upload API

Thank you it is working. public async Task<bool> PostInitAsync(ModInfo info, string zipFilePath) { var requestUrl = $"{_moddingOption.ModPortalUrl}/api/v2/mods/releases/init_upload"; var result = await _httpClient.PostAsync(requestUrl, new FormUrlEncodedContent( new Dictionary<string,strin...
by xzar90
Thu Jan 19, 2023 2:03 pm
Forum: Mod portal Discussion
Topic: [Released] Mod Upload API
Replies: 5
Views: 2324

Re: [Released] Mod Upload API

I I would like help with this, I get this error: I don't understand which payload format it accept. var requestUrl = $"{_moddingOption.ModPortalUrl}/api/v2/mods/releases/init_upload"; var result = await _httpClient.PostAsJsonAsync(requestUrl, new { mod = info.Name }); if (result.IsSuccessS...

Go to advanced search