Knetik.KnetikClient.PutUserInfo C# (CSharp) Method

PutUserInfo() public method

public PutUserInfo ( string name, string value, Action cb = null ) : KnetikApiResponse
name string
value string
cb Action
return KnetikApiResponse
        public KnetikApiResponse PutUserInfo(string name, string value, Action<KnetikApiResponse> cb = null)
        {
            JSONObject j = new JSONObject (JSONObject.Type.OBJECT);
            j.AddField ("configName", name);
            j.AddField ("configValue", value);
            String body = j.Print ();

            KnetikRequest req = CreateRequest(PutUserInfoEndpoint, body);
            KnetikApiResponse res = new KnetikApiResponse(this, req, cb);
            return res;
        }