Example #1
0
 public GvApiRequest(string request, string requestId, GvApiAuth auth, object data)
 {
     this.version   = GvApiConstants.apiVersion;
     this.request   = request;
     this.requestId = requestId;
     this.auth      = auth;
     this.data      = data;
 }
Example #2
0
    static public GvApiRequest makeRequest(string rqstType, string rqstId,
                                           string context, string contextKey,
                                           object rqstData)
    {
        string date = DateTime.UtcNow.ToString("yyyy-MM-ddTHH:mm:ss.fffZ");
        string hash = GvApiHelpers.generateHash(context, contextKey, date);

        GvApiAuth auth = new GvApiAuth(date, hash);

        return(new GvApiRequest(rqstType, rqstId, auth, rqstData));
    }