diff --git a/OF DL/Helpers/APIHelper.cs b/OF DL/Helpers/APIHelper.cs index d82be2f..c537686 100644 --- a/OF DL/Helpers/APIHelper.cs +++ b/OF DL/Helpers/APIHelper.cs @@ -464,7 +464,7 @@ public class APIHelper : IAPIHelper Dictionary getParams = new() { { "offset", offset.ToString() }, - { "limit", "50" } + { "limit", "50" }, }; List users = new(); @@ -540,7 +540,8 @@ public class APIHelper : IAPIHelper getParams = new Dictionary { { "limit", post_limit.ToString() }, - { "order", "publish_date_desc" } + { "order", "publish_date_desc" }, + { "skip_users", "all" } }; break; @@ -548,7 +549,8 @@ public class APIHelper : IAPIHelper getParams = new Dictionary { { "limit", limit.ToString() }, - { "offset", offset.ToString() } + { "offset", offset.ToString() }, + { "skip_users", "all" } }; break; } @@ -738,9 +740,10 @@ public class APIHelper : IAPIHelper Dictionary getParams = new() { { "limit", post_limit.ToString() }, + { "skip_users", "all" }, { "order", "publish_date_desc" }, { "format", "infinite" }, - { "user_id", username } + { "author", username } }; var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config)); @@ -906,7 +909,8 @@ public class APIHelper : IAPIHelper { { "limit", post_limit.ToString() }, { "order", "publish_date_desc" }, - { "format", "infinite" } + { "format", "infinite" }, + { "skip_users", "all" } }; Enumerations.DownloadDateSelection downloadDateSelection = Enumerations.DownloadDateSelection.before; @@ -1237,7 +1241,8 @@ public class APIHelper : IAPIHelper { { "limit", post_limit.ToString() }, { "order", "publish_date_desc" }, - { "format", "infinite" } + { "format", "infinite" }, + { "skip_users", "all" } }; Enumerations.DownloadDateSelection downloadDateSelection = Enumerations.DownloadDateSelection.before; @@ -1524,7 +1529,8 @@ public class APIHelper : IAPIHelper Dictionary getParams = new() { { "limit", post_limit.ToString() }, - { "order", "desc" } + { "order", "desc" }, + { "skip_users", "all" } }; var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config)); @@ -1840,7 +1846,8 @@ public class APIHelper : IAPIHelper { "limit", post_limit.ToString() }, { "order", "publish_date_desc" }, { "format", "infinite" }, - { "user_id", username } + { "author", username }, + { "skip_users", "all" } }; var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config)); diff --git a/OF DL/Program.cs b/OF DL/Program.cs index 86c9d87..bfa013b 100644 --- a/OF DL/Program.cs +++ b/OF DL/Program.cs @@ -1303,7 +1303,7 @@ public class Program await AnsiConsole.Status() .StartAsync("[red]Getting Paid Messages[/]", async ctx => { - paidMessageCollection = await downloadContext.ApiHelper.GetPaidMessages("/posts/paid", path, user.Key, downloadContext.DownloadConfig!, ctx); + paidMessageCollection = await downloadContext.ApiHelper.GetPaidMessages("/posts/paid/chat", path, user.Key, downloadContext.DownloadConfig!, ctx); }); int oldPaidMessagesCount = 0; int newPaidMessagesCount = 0; @@ -1956,7 +1956,7 @@ public class Program await AnsiConsole.Status() .StartAsync("[red]Getting Paid Posts[/]", async ctx => { - purchasedPosts = await downloadContext.ApiHelper.GetPaidPosts("/posts/paid", path, user.Key, downloadContext.DownloadConfig!, paid_post_ids, ctx); + purchasedPosts = await downloadContext.ApiHelper.GetPaidPosts("/posts/paid/post", path, user.Key, downloadContext.DownloadConfig!, paid_post_ids, ctx); }); int oldPaidPostCount = 0;