API change

This commit is contained in:
Tristan B. Kildaire 2020-07-29 12:22:35 +02:00
parent b2c39886df
commit 318c63c218
1 changed files with 3 additions and 3 deletions

View File

@ -185,7 +185,7 @@ public final class ButterflyClient
{
/* TODO: Good */
string[] folderNames;
foreach(JSONValue folderName; response["folders"].array())
foreach(JSONValue folderName; response["response"]["folders"].array())
{
folderNames ~= folderName.str();
}
@ -313,7 +313,7 @@ public final class ButterflyClient
{
/* TODO: Good */
string[] mailIDs;
foreach(JSONValue mailID; response["mailIDs"].array())
foreach(JSONValue mailID; response["response"]["mailIDs"].array())
{
mailIDs ~= mailID.str();
}
@ -453,4 +453,4 @@ public final class ButterflyClient
throw new ButterflyException(response["status"]["message"].str(), response["status"]["code"].integer());
}
}
}
}