Fix purchased tab API endpoints #72
@ -2078,7 +2078,8 @@ public class APIHelper : IAPIHelper
|
|||||||
{
|
{
|
||||||
{ "limit", post_limit.ToString() },
|
{ "limit", post_limit.ToString() },
|
||||||
{ "order", "publish_date_desc" },
|
{ "order", "publish_date_desc" },
|
||||||
{ "format", "infinite" }
|
{ "format", "infinite" },
|
||||||
|
{ "skip_users", "all" }
|
||||||
};
|
};
|
||||||
|
|
||||||
var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config));
|
var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config));
|
||||||
@ -2251,7 +2252,8 @@ public class APIHelper : IAPIHelper
|
|||||||
{
|
{
|
||||||
{ "limit", post_limit.ToString() },
|
{ "limit", post_limit.ToString() },
|
||||||
{ "order", "publish_date_desc" },
|
{ "order", "publish_date_desc" },
|
||||||
{ "format", "infinite" }
|
{ "format", "infinite" },
|
||||||
|
{ "skip_users", "all" }
|
||||||
};
|
};
|
||||||
|
|
||||||
var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config));
|
var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config));
|
||||||
|
|||||||
@ -983,7 +983,7 @@ public class Program
|
|||||||
}
|
}
|
||||||
else if (hasSelectedUsersKVP.Key && hasSelectedUsersKVP.Value != null && hasSelectedUsersKVP.Value.ContainsKey("PurchasedTab"))
|
else if (hasSelectedUsersKVP.Key && hasSelectedUsersKVP.Value != null && hasSelectedUsersKVP.Value.ContainsKey("PurchasedTab"))
|
||||||
{
|
{
|
||||||
Dictionary<string, int> purchasedTabUsers = await m_ApiHelper.GetPurchasedTabUsers("/posts/paid", Config, users);
|
Dictionary<string, int> purchasedTabUsers = await m_ApiHelper.GetPurchasedTabUsers("/posts/paid/all", Config, users);
|
||||||
AnsiConsole.Markup($"[red]Checking folders for Users in Purchased Tab\n[/]");
|
AnsiConsole.Markup($"[red]Checking folders for Users in Purchased Tab\n[/]");
|
||||||
foreach (KeyValuePair<string, int> user in purchasedTabUsers)
|
foreach (KeyValuePair<string, int> user in purchasedTabUsers)
|
||||||
{
|
{
|
||||||
@ -1030,7 +1030,7 @@ public class Program
|
|||||||
|
|
||||||
Log.Debug($"Download path: {p}");
|
Log.Debug($"Download path: {p}");
|
||||||
|
|
||||||
List<PurchasedTabCollection> purchasedTabCollections = await m_ApiHelper.GetPurchasedTab("/posts/paid", p, Config, users);
|
List<PurchasedTabCollection> purchasedTabCollections = await m_ApiHelper.GetPurchasedTab("/posts/paid/all", p, Config, users);
|
||||||
foreach(PurchasedTabCollection purchasedTabCollection in purchasedTabCollections)
|
foreach(PurchasedTabCollection purchasedTabCollection in purchasedTabCollections)
|
||||||
{
|
{
|
||||||
AnsiConsole.Markup($"[red]\nScraping Data for {purchasedTabCollection.Username}\n[/]");
|
AnsiConsole.Markup($"[red]\nScraping Data for {purchasedTabCollection.Username}\n[/]");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user