Help for this page

Select Code to Download


  1. or download this
     http = HTTPClient.new
     jpeg_path = "#{Rails.root}/#{[path]}"
    ...
       headers = {"Authorization" => "Bearer #{auth_info['access_token']}"
    +}
      body = { 'original' => jpeg, 'slug' => 'woohoo' }
      response = http.post(uri, body, headers)
    
  2. or download this
    
     my $browser = LWP::UserAgent->new;
    ...
                    Filedata => [$image],
            ]
        );
    
  3. or download this
    HTTP/1.1 400 Bad Request
    Cache-Control: no-store, no-transform
    ...
      "error_description": "This service requires authentication"
    }