Hidistro.ControlPanel/ControlPanel/WeiBo/WeiBo.cs
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace ControlPanel.WeiBo
{
using Hidistro.Core;
using Hidistro.Core.Entities;
using Hidistro.Entities.Weibo;
using Hishop.WeiBo.Api;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Runtime.CompilerServices;
using System.Text;
using System.Web;
public class WeiBo
{
private SinaWeiboClient sinaweibo;
public WeiBo()
{
SiteSettings masterSettings = SettingsManager.GetMasterSettings(false);
this.sinaweibo = new GetAuth().GetOpenAuthClient(masterSettings.Access_Token);
}
public string commentscreate(string id, string comment)
{
string result = "{\"IsAuthorized\":\"0\"}";
if (this.sinaweibo.IsAuthorized)
{
result = this.sinaweibo.HttpPost("comments/create.json", new { id = id, comment = comment }).Content.ReadAsStringAsync().Result;
}
return result;
}
public string createmenu(string comment)
{
string result = "{\"IsAuthorized\":\"0\"}";
if (this.sinaweibo.IsAuthorized)
{
result = this.sinaweibo.HttpPost("https://m.api.weibo.com/2/messages/menu/create.json", new { menus = comment }).Content.ReadAsStringAsync().Result;
}
return result;
}
public string deletemenu()
{
string result = "{\"IsAuthorized\":\"0\"}";
if (this.sinaweibo.IsAuthorized)
{
result = this.sinaweibo.HttpPost("https://m.api.weibo.com/2/messages/menu/delete.json", new { }).Content.ReadAsStringAsync().Result;
}
return result;
}
public string friends_timeline(int page)
{
string result = "{\"IsAuthorized\":\"0\"}";
if (this.sinaweibo.IsAuthorized)
后面还有 205 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
