问题描述
我试图制作一个可以发送instagram消息的窗口应用程序,但是我的代码无法提取收件箱。 :。以下是一些代码:
`
if (loginreq.Succeeded)
{
string user = "kristian_grey.memes";
Console.WriteLine("logged in!");
//THIS LINE BELOW
var inBoxThreads = await api.GetDirectInBoxAsync();
if (!inBoxThreads.Succeeded)
{
Console.WriteLine("Unable to get inBox");
return;
}
foreach (var thread in inBoxThreads.Value.InBox.Threads)
{
Console.WriteLine($"Threadname: {thread.Title},users: {thread.Users.Count}");
}`
Exception: Newtonsoft.Json.JsonSerializationException: Error converting value "6700803485145306816" to type 'System.Guid'. Path 'inBox.threads[0].items[0].client_context',line 1,position 1779. ---> System.ArgumentException: Could not cast or convert from System.String to System.Guid.
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)