New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sketchfab

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sketchfab

Sketchfab API client

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Sketchfab API Client

Installation

$ npm install node-sketchfab --save

API

Run the example:

  • Edit example/upload.js to add your API token.
  • Run: node example/upload.js

Sketchfab( auth )

Returns a new client for the given authentication object.

client.upload( params, callback )

Upload a 3D file. Params is an object containing parameters for upload.

You can pass the following parameters:

  • file (string): Required. Path of the local file to upload.
  • name (string): Optional. Name of the model.
  • description (string): Optional. Description.
  • tags (string): Optional. Space separated tags.
  • private (string): Optional, 'true' or 'false'. For PRO accounts only.
  • password (string): Optional. Password to make the model password protected. For PRO accounts only.

Callback will be invoked with err and result. The result will be a Task object that emits events:

  • progress: will report the upload progress (from 0 to 100).
  • success: when the file is uploaded and processed. Event is passed the URL of the online model.
  • error: when there is an error. Event is passed an error message.

client.me(callback)

Get profile information for current account. Callback will be invoked with profile data.

FAQs

Package last updated on 09 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc