 | RESTClientGetAPIT 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 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 T
public:
generic<typename T>
T GetAPI(
String^ endpoint,
String^ apiMethod,
LoginTokenResult^ loginToken,
bool returnJSON
)
member GetAPI :
endpoint : string *
apiMethod : string *
loginToken : LoginTokenResult *
returnJSON : bool -> '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.RESTClient.GetAPI``1(System.String,System.String,Koden.Utils.REST.Models.LoginTokenResult,System.Boolean)"]
Return Value
Type:
T[Missing <returns> documentation for "M:Koden.Utils.REST.RESTClient.GetAPI``1(System.String,System.String,Koden.Utils.REST.Models.LoginTokenResult,System.Boolean)"]
See Also