不能在 C# 中使用 strava API
Can't use strava API in C#
来自 strava 参考 https://developers.strava.com/docs/reference/#api-Clubs-getClubMembersById
我正在尝试在 C# 中使用 strava API。
我在 Concole App(Microsoft Visual Studio Community 2019 上的 .NET Framework 4.6.1)上安装了 Strava.NET v3.4.4,如下图所示。
我刚刚添加了 strava 参考作为上面的 link。
代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using com.strava.api.v3.Api;
using com.strava.api.v3.Client;
using com.strava.api.v3.Model;
namespace getClubMembersById
{
class Program
{
static void Main(string[] args)
{
}
}
}
错误:
The type or namespace name 'com' could not be found (are you missing a using directive or an assembly reference?)
我认为 Strava C# 示例是通用的,因此您必须阅读 Strava.NET
库文档。
Strava.NET
包括这些命名空间。
请注意,Strava.NET 3.4.4
最后更新于 02/04/2016
,但 Strava 引入了 important updates since 15/10/2018
。
来自 strava 参考 https://developers.strava.com/docs/reference/#api-Clubs-getClubMembersById
我正在尝试在 C# 中使用 strava API。
我在 Concole App(Microsoft Visual Studio Community 2019 上的 .NET Framework 4.6.1)上安装了 Strava.NET v3.4.4,如下图所示。
我刚刚添加了 strava 参考作为上面的 link。
代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using com.strava.api.v3.Api;
using com.strava.api.v3.Client;
using com.strava.api.v3.Model;
namespace getClubMembersById
{
class Program
{
static void Main(string[] args)
{
}
}
}
错误:
The type or namespace name 'com' could not be found (are you missing a using directive or an assembly reference?)
我认为 Strava C# 示例是通用的,因此您必须阅读 Strava.NET
库文档。
Strava.NET
包括这些命名空间。
请注意,Strava.NET 3.4.4
最后更新于 02/04/2016
,但 Strava 引入了 important updates since 15/10/2018
。