get https://api.fulcrumapp.com/api/v2/photos//thumbnail.jpg
API Library Examples
from fulcrum import Fulcrum
fulcrum = Fulcrum('{token}')
photo = fulcrum.photos.media('{id}', 'thumbnail')
with open('{id}.jpg', 'wb') as f:
f.write(photo)
const { Client } = require('fulcrum-app');
const client = new Client('{token}');
const fs = require('fs');
const writeStream = fs.createWriteStream('{id}.jpg');
client.photos.media('{id}', 'thumbnail')
.then(photo => photo.pipe(writeStream))
.catch(error => console.log(error));
require 'fulcrum'
client = Fulcrum::Client.new('{token}')
client.photos.thumbnail('{id}') do |input|
File.open('{id}.jpg', 'wb') do |output|
output.write(input.read)
end
end