Skip to content

Sending and using variables in an easy api call #42

Open
@Reddevildragg

Description

@Reddevildragg

Hi
Im just working with the azure code here, and wondering if there is an example anywhere of sending custom data to the easy api system and then being able to access that on the server. So far i have been trying to use
/// <summary> /// Invokes custom API with body (of type B) and returning response (of type T) /// </summary> public IEnumerator InvokeApi<B, T>(string apiName, Method httpMethod, B body, Action<IRestResponse<T>> callback = null) where T : new() { string url = ApiUrl(apiName); Debug.Log(httpMethod.ToString() + " custom API Request Url: " + url); ZumoRequest request = new ZumoRequest(url, httpMethod, true, User); request.AddBody<B>(body); yield return request.Request.Send(); request.ParseJson<T>(callback); }

but appear to not receive the body under the req in the get request on easy api. is there an example of something i can do here, any help would be greatly appreciated. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions