API change
This commit is contained in:
parent
b2c39886df
commit
318c63c218
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue