Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 tweetsharp api 进行地理定位推文。我确实用过
TwitterStatus status = ts.SendTweet(s,lat,lon);
代码。但状态对象引用为空。我如何发送地理定位的推文?
好吧,你没有提供很多细节,但我会尽力提供帮助。我想您已经检索到纬度和经度并且它们不为空,并且您的变量s包含有效的状态字符串。
s
然后,错误的最可能原因是 Twitter API。ts.Response在调试或打印中使用ts.Response.StatusCode和检查响应ts.Response.Response。
ts.Response
ts.Response.StatusCode
ts.Response.Response
希望这可以帮助你。