I looked through the API docs and found a lot of useful information. However I was wondering if there is an API call to register a core with a specific account? I plan to create an admin app and when a customer goes to get the device online I want it to auto register with my account after they put in their user credentials.
Seems like it didn’t end up in the docs. I have opened a github issue and will push a PR tonight.
[https://github.com/spark/docs/issues/311 ]
See the command used here:
/**
******************************************************************************
* @file lib/ApiClient.js
* @author David Middlecamp (david@spark.io)
* @company Spark ( https://www.spark.io/ )
* @source https://github.com/spark/spark-cli
* @version V1.0.0
* @date 14-February-2014
* @brief Basic API wrapper module
******************************************************************************
Copyright (c) 2014 Spark Labs, Inc. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation, either
version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
This file has been truncated. show original
Bascially a POST command with core-id and access-token to `api.spark.io/v1/devices
Thank you for the quick response, I will give that a try!