- Add loginAsClientOwner method
- Update to latest superagent with support for nested directory. Drops support for Node versions earlier than 4.
- Add serial number endpoint
- Fix nested directories bug
- Update form-data to v1.0.0-relativepath.2
- Add support for deleting current token
- Add support for all product API endpoints.
- Add support for sending additional context with each call.
- Create a wrapper for
listBuildTargets
inClient.js
. - Marked
compileCode
,signalDevice
,listDevices
andlistBuildTargets
as deprecated. Those methods will be removed in 6.5
- Create a wrapper for
listDevices
inClient.js
.
- Add scopes to library listing
- Create a wrapper for
signalDevice
inClient.js
.
- Add support for account verification endpoint via verifyUser function
- Change account_info input parameter in createUser and setUserInfo to be camel case - accountInfo
- Add support for account information fields in createUser and setUserInfo
- Add "shortErrorDescription" in response body to contain English description only
- Add library publish
- Rename library publish to library contribute
- Add library versions endpoint
- Add library delete
- Add library publish
- Use only HTTP dependencies to be able to install on computers without git
- Support nested directories when compiling sources
- Add compile code to client
- Fix the login method content type
- Add libraries endpoints
- Add stateful client
- Add object interface for libraries
- Handle empty event names in the event stream.
- Add details to README
- Adding responseTemplate and responseTopic to webhook creation. Thanks @acasas! #20
- Add password reset route #27
- Make event stream compatible with new product routes #28
- Fix files parameter default name to be
file
and notfile1
.
- Don't double publish event stream events if the event is named
event
.
- Handle
JSON.parse
exceptions when parsing event stream
flashDevice
latest
also needs to be a string, not a boolean. #12
- Remove setting of
User-Agent
header because that is not allowed in browsers. #10
- Fix named event streams by encoding event name.
- Move access token to query string to eliminate preflight CORS request.
- Use fork of
stream-http
that prevents usage offetch
because it does not abort. - Use correct streaming mode of
stream-http
.
- Improve cleanup on
abort
.
- Add support for organization and product slugs to
getEventStream
.
JSON.parse
HTTP response body forgetEventStream
error case.
- Fix event stream. #8
- Add
downloadFirmwareBinary
- Add ability to intercept requests for debugging
- Use library version for User-Agent
- Allow request transfer for
claimDevice
signalDevice
needs to use strings, not numbers.compileCode
latest
should be a string, not a boolean.
- Remove trailing slash from
baseUrl
. #7
- Remove need for
require('particle-api-js').default
in CommonJS usage. It is now justrequire('particle-api-js')
.
- Removed need for
babel-runtime
. - Add
flashDevice
,compileCode
, andlistAccessTokens
. - Add missing options to
createWebhook
. - Remove
downloadFirmwareBinary
.
- Update contributors.
- Add
downloadFirmwareBinary
.
- Add
validatePromoCode
. activateSIM
now requirespromo_code
andaction
.
- Fix old
code
reference.
- Change
code
tostatusCode
in rejection.
- Add
statusCode
to Promise fulfillment.
- Add
listBuildTargets
.
- Add
countryCode
toactivateSIM
.
- Fix
activateSIM
.
- Replace
request
withsuperagent
. - Add
iccid
togetClaimCode
. - Only use form encoding on
login
andsignup
.
- Removed browser entry in package.json. This makes it possible to bundle the module with other apps that use browserify without causing relative pathing issues.
- Improved error handling and reporting. Network errors and HTTP errors now both return
code
property that can be more easily used to programmatically detect error types.