Account


Earned badges

Achievement: Latest Unlocked

Topic Started

Topics
[email protected] hello team, wasn't able to find an email to contact support, but for me the sandbox is performing extremely slow.
hello, i've seen reference to an iOS SDK.
hello, this may no be the correct forum to post this question. I've most likely overlooked this somewhere, however, where has the team published the various JSON schemas?
Hello, just started to work with the REST API. currently working thru the Python test cases / examples. i have two initial observations. 1.
Hello https://developer.esignlive.com/code-share/esignlive-rest-client-using-python/ looking at the python code, i'm trying to run one of the example application use cases.

Replies Created

Approved Answer

Reply to: iOS Mobile SDK not found - broken link

0 votes
my apologies: the below link seems to be working. http://docs.e-signlive.com/10.0/sdk/esl-sdk-ios-3.0.zip?_ga=1.206128979.1707062570.1464967640

Reply to: REST - POST Package JSON + Documents Assistance

0 votes
at the moment this is what i've tried. UTF8 encoded docuement (only trying one for now to test...) thanks for any assistance.
- (void)submitPackageJSONv3:(NSDictionary*)json document:(NSData*)document {
    
    // prepare multipart boundary
    NSString *boundary = @"unique-consistent-string";
    NSString *contentType = [NSString stringWithFormat:@"multipart/form-data; boundary=%@", boundary];
    
    // ---- initialize request object ----
    NSMutableURLRequest *request =
    [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://sandbox.esignlive.com/api/packages"]];
    [request setHTTPMethod:@"POST"];
    
    // ---- set headers ----
    [request setValue:@"Basic enVyZ........................4b0U4Tw==" forHTTPHeaderField: @"Authorization"];
    [request setValue:@"gzip, deflate" forHTTPHeaderField: @"Accept-Encoding"];
    [request setValue:@"*/*" forHTTPHeaderField: @"Accept"];
    [request setValue:@"keep-alive" forHTTPHeaderField: @"Connection"];
    [request setValue:@"chunked" forHTTPHeaderField: @"Transfer-Encodinge"];
    [request setValue:contentType forHTTPHeaderField: @"Content-Type"];
    
    NSMutableData *body = [NSMutableData data];
    
    // ---- apppend JSON ----
    [body appendData:[[NSString stringWithFormat:@"--%@\r\n", boundary] dataUsingEncoding:NSUTF8StringEncoding]];
    [body appendData:[[NSString stringWithFormat:@"%@\r\n", @"Content-Disposition: form-data; name='payload'"]
                      dataUsingEncoding:NSUTF8StringEncoding]];
    [body appendData:[NSKeyedArchiver archivedDataWithRootObject:json]];
    
    
    // ---- apppend docs ----
    [body appendData:[[NSString stringWithFormat:@"--%@\r\n", boundary] dataUsingEncoding:NSUTF8StringEncoding]];
    [body appendData:[[NSString stringWithFormat:@"%@\r\n", @"Content-Disposition: form-data; name='file'; filename='file'"]
                      dataUsingEncoding:NSUTF8StringEncoding]];
    
    [body appendData:document];
    [body appendData:[[NSString stringWithFormat:@"--%@--\r\n", boundary] dataUsingEncoding:NSUTF8StringEncoding]];
    
    // ---- set HTTP Body ----
    [request setHTTPBody:body];
    
    // ---- set the content-length header ----
    NSString *postLength = [NSString stringWithFormat:@"%lu", (unsigned long)[body length]];
    [request setValue:postLength forHTTPHeaderField:@"Content-Length"];
    
    // ---- send HTTP POST ----
    [NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue currentQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) {
        NSLog(@"%@", error.description);
        if(data.length > 0)
        {
            //success
           NSLog(@"Success");
        }
    }];
}

Reply to: REST - POST Package JSON + Documents Assistance

0 votes
slight modification: receiving the below error.
2016-06-18 17:11:04.533 ESLRemoteExpert[82361:18662663] {"messageKey":"error.internal.default","technical":"65533","message":"Unexpected Error. Our technical staff have been notified and will look into the problem. We apologize for any inconvenience this may have caused you.","code":500,"name":"Unhandled Server Error"}
i suspect this is a file encoding issue. ? any suggestions would be greatly appreciated.
- (void)submitPackageJSONv5:(NSDictionary*)json documentPath:(NSString*)documentPath {
    
    // prepare multipart boundary
    NSString *boundary = @"unique-consistent-string";
    NSString *contentType = [NSString stringWithFormat:@"multipart/form-data; boundary=%@", boundary];
    
    // ---- initialize request object ----
    NSMutableURLRequest *request =
    [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://sandbox.esignlive.com/api/packages"]];
    [request setHTTPMethod:@"POST"];
    
    // ---- set headers ----
    [request setValue:@"Basic enVyZ1A3Yl....................YTV1eW94b0U4Tw==" forHTTPHeaderField: @"Authorization"];
    [request setValue:@"gzip, deflate" forHTTPHeaderField: @"Accept-Encoding"];
    [request setValue:@"*/*" forHTTPHeaderField: @"Accept"];
    [request setValue:@"keep-alive" forHTTPHeaderField: @"Connection"];
    [request setValue:@"chunked" forHTTPHeaderField: @"Transfer-Encodinge"];
    [request setValue:contentType forHTTPHeaderField: @"Content-Type"];

    NSMutableData *body = [NSMutableData data];

    // ---- apppend JSON ----
    [body appendData:[[NSString stringWithFormat:@"--%@\r\n", boundary] dataUsingEncoding:NSUTF8StringEncoding]];
    [body appendData:[[NSString stringWithFormat:@"%@\r\n", @"Content-Disposition: form-data; name='payload'"]
                      dataUsingEncoding:NSUTF8StringEncoding]];
    [body appendData:[NSKeyedArchiver archivedDataWithRootObject:json]];

    NSData *filedata = [NSData dataWithContentsOfURL:[NSURL fileURLWithPath:documentPath]];
    NSLog(@"file:%@",filedata);

    // ---- apppend docs ----
    [body appendData:[[NSString stringWithFormat:@"--%@\r\n", boundary] dataUsingEncoding:NSUTF8StringEncoding]];
    [body appendData:[[NSString stringWithFormat:@"%@\r\n", @"Content-Disposition: form-data; name='file'; filename='file'"]
                      dataUsingEncoding:NSUTF8StringEncoding]];
   // [body appendData:[[NSString stringWithString:@"Content-Type: application/octet-stream\r\n\r\n"] dataUsingEncoding:NSUTF8StringEncoding]];
    [body appendData:filedata];
    
    [body appendData:[[NSString stringWithFormat:@"\r\n--%@--\r\n",boundary] dataUsingEncoding:NSUTF8StringEncoding]];
    [request setHTTPBody:body];

    NSHTTPURLResponse* response =[[NSHTTPURLResponse alloc] init];
    NSError* error = [[NSError alloc] init] ;
    
    error = [NSError errorWithDomain:DGErrorDomain code:DGFNIDParsingFailedError userInfo:nil];

    NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];
    
    if (error)
    {
       NSLog(@"%@", error.description);
        
    }

    NSString *responseString = [[NSString alloc] initWithBytes:[responseData bytes]
                                                         length:[responseData length]
                                                       encoding:NSUTF8StringEncoding];
    NSLog(@"%@", responseString);
    
}

Reply to: REST - POST Package JSON + Documents Assistance

0 votes
hey Team, Any way to identify the issue behind this message;
2016-06-18 17:11:04.533 ESLRemoteExpert[82361:18662663] {"messageKey":"error.internal.default","technical":"65533","message":"Unexpected Error. Our technical staff have been notified and will look into the problem. We apologize for any inconvenience this may have caused you.","code":500,"name":"Unhandled Server Error"}
potentially viewing the server logs?

Reply to: REST - POST Package JSON + Documents Assistance

0 votes
Hello Michael, just tried the bellow request, which completed successfully.
- (void)getRequest {
    
    // 1
    NSURL *url = [NSURL URLWithString:@"https://sandbox.esignlive.com/api/packages"];
    NSURLSessionConfiguration *config = [NSURLSessionConfiguration defaultSessionConfiguration];
    NSURLSession *session = [NSURLSession sessionWithConfiguration:config];
    
    // 2
    NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:url];
    request.HTTPMethod = @"GET";
    [request setValue:@"Basic enVyZ1A3Y...................94b0U4Tw==" forHTTPHeaderField: @"Authorization"];
    // 3
    
    NSError *error = nil;
    
    if (!error) {
        // 4
        NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request completionHandler:^(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) {
            NSLog(@"%@", [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]);
        }];
        
        // 5
        [dataTask resume];
    }
    
}

Subscriptions

Topics Replies Freshness Views Users
[email protected] hello team, wasn't able to find an email to contact support, but for me the sandbox is performing extremely slow.
1 7 years 10 months ago 17
Profile picture for user mwilliams
hello, i've seen reference to an iOS SDK.
1 7 years 10 months ago 37
Profile picture for user mwilliams
hello, this may no be the correct forum to post this question. I've most likely overlooked this somewhere, however, where has the team published the various JSON schemas?
9 5 years 8 months ago 90
Profile picture for user Duo_Liang
Profile picture for user tatternutz
Hello, just started to work with the REST API. currently working thru the Python test cases / examples. i have two initial observations. 1.
6 3 years 1 month ago 81
Profile picture for user Duo_Liang
Profile picture for user harishaidary
Hello https://developer.esignlive.com/code-share/esignlive-rest-client-using-python/ looking at the python code, i'm trying to run one of the example application use cases.
3 7 years 10 months ago 21
Profile picture for user harishaidary

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.