我有以下代码用于尝试从我的MangoApps应用程序获取数据。我正在关注本指南,因为我对这个https://github.com/gibran/MangoSpring.Net/blob/master/README.md很新,但是我得到一个名称空间名称无法找到IRequestManager错误。关于我做错了什么的任何想法?
using MangoSpring.Net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Project1
{
class DataGet
{
public DataGet()
{
var authenticationToken = new AuthenticationToken(_domainName, _username, _password, _apiKey);
IRequestManager manager = new RequestManager();
// logging in
manager.Login(authenticationToken);
// calling a method (ex: Get All Projects)
var allProjects = manager.Execute(new GetAllProjectsMethod());
// logging out (optional)
manager.Logout();
}
public class GetAllProjectsMethod : MangoSpringMethod
{
public GetAllProjectsMethod()
{
HttpMethod = "GET";
ShouldRunAuthenticated = true;
Path = "projects.json?all=true";
}
}
}
}
答案 0 :(得分:0)
根据您对错误的描述,似乎错误发生在客户端,并且对MangoApps的API调用不。
无论如何要与客户端软件包的作者核实一下吗? - https://www.nuget.org/packages/MangoSpring.Net
谢谢!