Sha256: 3569c1009a1716333e71956238676146125b42821ae39bcf827f47dd22f34638
Contents?: true
Size: 471 Bytes
Versions: 1
Compression:
Stored size: 471 Bytes
Contents
module Freelabster # Handles all calls to Freelabster's API. class API # Get a new token from the API. # # Takes an array of URLs to 3D files and returns a hash: # # Example: # API.get_token(urls: ["http://example.com/file.stl"]) # # => { token: "f00b4r" } def get_token(urls:) get_token_url = "https://api.freelabster.com/v1/happy3D/getToken" HTTP.post(get_token_url, json: { urls: urls }).parse end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
freelabster-0.1.0 | lib/freelabster/api.rb |