- 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)
- or download this
my $browser = LWP::UserAgent->new;
...
Filedata => [$image],
]
);
- or download this
HTTP/1.1 400 Bad Request
Cache-Control: no-store, no-transform
...
"error_description": "This service requires authentication"
}