Help for this page

Select Code to Download


  1. or download this
    key="YOUR_API_KEY"
    secret="YOUR_API_SECRET"
    ...
    full_url="$host$prefix$url"
    curl -X $method $full_url -d "$body_param" -H "Content-Type: applicati
    +on/json" \
        -H "Timestamp: $timestamp" -H "KEY: $key" -H "SIGN: $sign"
    
  2. or download this
    #!/usr/bin/perl
    
    ...
        print "HTTP POST error message: ", $response->message, "\n";
    }
    
  3. or download this
    timestamp=$(date +%s)
    
  4. or download this
     
    my $time = time;
    my $timestamp = strftime("%Y%m%d %S", localtime($time));
    # prints example 20240924 55