CocNET-master
所属分类:游戏
开发工具:Visual C++
文件大小:1332KB
下载次数:2
上传日期:2017-08-10 19:44:20
上 传 者:
drawordxc
说明: no intro
(api net clash of clans source)
文件列表:
.travis.yml (229, 2017-06-06)
CocNET (0, 2017-06-06)
CocNET\.nuget (0, 2017-06-06)
CocNET\.nuget\NuGet.Config (164, 2017-06-06)
CocNET\.nuget\NuGet.exe (4266712, 2017-06-06)
CocNET\.nuget\NuGet.targets (7484, 2017-06-06)
CocNET\.nuget\packages.config (119, 2017-06-06)
CocNET\CocNET.Test (0, 2017-06-06)
CocNET\CocNET.Test\CocCoreClansTest.cs (2649, 2017-06-06)
CocNET\CocNET.Test\CocCoreLeaguesTest.cs (1863, 2017-06-06)
CocNET\CocNET.Test\CocCoreLocationsTest.cs (3325, 2017-06-06)
CocNET\CocNET.Test\CocCorePlayersTest.cs (1421, 2017-06-06)
CocNET\CocNET.Test\CocNET.Test.csproj (8564, 2017-06-06)
CocNET\CocNET.Test\Properties (0, 2017-06-06)
CocNET\CocNET.Test\Properties\AssemblyInfo.cs (1398, 2017-06-06)
CocNET\CocNET.Test\app.config (422, 2017-06-06)
CocNET\CocNET.Test\packages.config (648, 2017-06-06)
CocNET\CocNET.sln (1761, 2017-06-06)
CocNET\CocNET (0, 2017-06-06)
CocNET\CocNET\CocCore.cs (1444, 2017-06-06)
CocNET\CocNET\CocNET.csproj (8247, 2017-06-06)
CocNET\CocNET\Includes (0, 2017-06-06)
CocNET\CocNET\Includes\Locations.cs (9376, 2017-06-06)
CocNET\CocNET\Interfaces (0, 2017-06-06)
CocNET\CocNET\Interfaces\ICocCoreClans.cs (606, 2017-06-06)
CocNET\CocNET\Interfaces\ICocCoreLeagues.cs (396, 2017-06-06)
CocNET\CocNET\Interfaces\ICocCoreLocations.cs (513, 2017-06-06)
CocNET\CocNET\Interfaces\ICocCorePlayers.cs (273, 2017-06-06)
CocNET\CocNET\Methods (0, 2017-06-06)
CocNET\CocNET\Methods\Request.cs (2033, 2017-06-06)
CocNET\CocNET\Methods\UrlBuilder.cs (985, 2017-06-06)
CocNET\CocNET\Properties (0, 2017-06-06)
CocNET\CocNET\Properties\AssemblyInfo.cs (1388, 2017-06-06)
CocNET\CocNET\Services (0, 2017-06-06)
CocNET\CocNET\Services\CocCoreClans.cs (4463, 2017-06-06)
CocNET\CocNET\Services\CocCoreLeagues.cs (2520, 2017-06-06)
CocNET\CocNET\Services\CocCoreLocations.cs (3423, 2017-06-06)
... ...
[![Build Status](https://travis-ci.org/smietanka/CocNET.svg?branch=master)](https://travis-ci.org/smietanka/CocNET)
# CocNET
Wrapper to Clash Of Clans API in C# .NET
# How to use:
Downoload this project and build it.
Add to your application reference to CocNET.dll
In your application add:
```
using CocNET;
using CocNET.Interfaces;
```
# Paste this code:
```
class Program
{
static void Main(string[] args)
{
string token = "your token";
Container container = CocCore.Instance(token).Container;
ICocCoreLeagues leaguesCore = container.Resolve();
var leagues = leaguesCore.GetLeagues("crystal");
foreach (var eachLeague in leagues)
{
Console.WriteLine(eachLeague.Name);
}
// Same with:
// - ICocCoreLocations
// - ICocCorePlayers
// - ICocCoreClans
Console.ReadKey();
}
}
```
# Clash Of Clans API Forum
Last reply in thread: http://forum.supercell.net/showthread.php/1017616-Clash-of-Clans-developer-website-now-live%21?p=6934363&viewfull=1#post6934363
近期下载者:
相关文件:
收藏者: