A quick start with C#
|
2017-08-29, 02:02
(This post was last modified: 2017-08-29 12:22 by Adorable.)
Post: #1
|
|||||||
|
|||||||
A quick start with C#
Using [TC]s new API inside C# Applications:
NOTE: Json.NET Library needed for converting from JSON -> .NET Code: class tcApi Obtaining Json.NET I recommend to anyone coding C# to use Visual Studio (A cross platform IDE), its just a matter of executing a command in the NuGeT Package manager console to obtain the library: Install-Package Newtonsoft.Json You do not need to download, drag and drop or link with the compiler. the program does it for you! Usage Add the classes "tcApi" and "Actions" to your project Make new instance of the class tcApi Use the method "getData" and pass in a string from the Action class, a deserialized dynamic object will be returned. Code: tcApi api = new tcApi(); NOTE: I covered the most important end points, rest will be added soon. Always refer to the documentation for the exact key value pairs property names as they are case sensitive, it is also important to surround your code with try {} and catch {} to avoid possible errors / crashes (eg: a mispelled username). |
|||||||
|
|||||||
« Next Oldest | Next Newest »
|
Messages In This Thread |
A quick start with C# - Adorable - 2017-08-29 02:02
RE: A quick start with C# - Kyle - 2017-08-29, 07:27
RE: A quick start with C# - Pete - 2017-08-29, 11:39
|
User(s) browsing this thread: 1 Guest(s)
Powered By MyBB, © 2002-2024 MyBB Group