Skip to content

smietanka/CocNET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

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<ICocCoreLeagues>();
        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

About

Hook to Clash Of Clans API in C# .NET

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages