 | RESTClientAsyncGetAPIT Method |
Gets the data from the api endpoint.
Namespace:
Koden.Utils.REST
Assembly:
Koden.Utils.REST (in Koden.Utils.REST.dll) Version: 1.0.6464.41815
Syntaxpublic Task<T> GetAPI<T>(
string endpoint,
string apiMethod,
LoginTokenResult loginToken,
bool returnJSON
)
Public Function GetAPI(Of T) (
endpoint As String,
apiMethod As String,
loginToken As LoginTokenResult,
returnJSON As Boolean
) As Task(Of T)
public:
generic<typename T>
Task<T>^ GetAPI(
String^ endpoint,
String^ apiMethod,
LoginTokenResult^ loginToken,
bool returnJSON
)
member GetAPI :
endpoint : string *
apiMethod : string *
loginToken : LoginTokenResult *
returnJSON : bool -> Task<'T>
Parameters
- endpoint
- Type: SystemString
The endpoint. - apiMethod
- Type: SystemString
The API method. - loginToken
- Type: Koden.Utils.REST.ModelsLoginTokenResult
The login token. - returnJSON
- Type: SystemBoolean
if set to true returns JSON else returns XML.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:Koden.Utils.REST.RESTClientAsync.GetAPI``1(System.String,System.String,Koden.Utils.REST.Models.LoginTokenResult,System.Boolean)"]
Return Value
Type:
TaskT[Missing <returns> documentation for "M:Koden.Utils.REST.RESTClientAsync.GetAPI``1(System.String,System.String,Koden.Utils.REST.Models.LoginTokenResult,System.Boolean)"]
See Also