A quick start with C#
|
2017-08-29, 11:39
(This post was last modified: 2017-08-29 11:40 by Pete.)
Post: #3
|
|||||||
|
|||||||
RE: A quick start with C#
For a fetching function, like the examples already in the docs, that function should do all of the query building.
All of the necessary data to run the request should be passed in to your main tcApi class. In your example you end up building the query strings in your helper class code, outside of the fetching function. The examples in the docs take in a very basic object which contains all of the necessary data to make the request, for example the config in the JS example: Code: var key = 'YOUR_KEY'; Your example should do the same so that the user of your function does not need to build query strings in order to make requests for data. If you'd like to have a go at making your main request function as fully featured as the PHP and JS examples in the docs, I can add it to that. |
|||||||
|
|||||||
« 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