// this is how you can call clientAPI.setClientData function
alanBtnInstance.callProjectApi("setClientData", {value:"your data"}, function (error, result){
    // handle error and result here
});
            

[alanBtnInstance callProjectApi:@"setClientData" withData:@{@"value": @"your data"} callback:^(NSError *error, NSString *object) {
    // handle error and result here
}];
                

alanBtnInstance.callProjectApi("setClientData", withData: ["value": "your data"]) { (_, _) in
    // handle error and result here
}
                

JSONObject callParameters = new JSONObject("{\"value\":\"your data\"}");
alanBtnInstance.callProjectApi("setClientData", callParameters.toString(), new ScriptMethodCallback() {
            @Override
            public void onResponse(String methodName, String body, String error) {
                // handle error and result here
            }
        });