fix: update post/message api calls due to changes #61
@ -464,7 +464,7 @@ public class APIHelper : IAPIHelper
|
||||
Dictionary<string, string> getParams = new()
|
||||
{
|
||||
{ "offset", offset.ToString() },
|
||||
{ "limit", "50" }
|
||||
{ "limit", "50" },
|
||||
};
|
||||
List<string> users = new();
|
||||
|
||||
@ -540,7 +540,8 @@ public class APIHelper : IAPIHelper
|
||||
getParams = new Dictionary<string, string>
|
||||
{
|
||||
{ "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<string, string>
|
||||
{
|
||||
{ "limit", limit.ToString() },
|
||||
{ "offset", offset.ToString() }
|
||||
{ "offset", offset.ToString() },
|
||||
{ "skip_users", "all" }
|
||||
};
|
||||
break;
|
||||
}
|
||||
@ -738,9 +740,10 @@ public class APIHelper : IAPIHelper
|
||||
Dictionary<string, string> 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<string, string> 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));
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user