PHP Class for interacting with the Particle Cloud (particle.io)
- GIT clone or download a zip of the repo and unzip into your project director
- Rename
phpSpark.config.sample.php
tophpSpark.config.php
- Set your access token and device id in
phpSpark.config.php
- (Optional) Copy and paste the code in
spark.firmware.cpp
into a new app in the Particle WebIDE & flash it to your core - (Optional) Run the any of the examples in the
examples
folder
- Check out the examples in the
examples
folder - Try out the phpSparkDashboard project which uses this project (demo)
- List Devices
- Get device info
- Rename/Set device name
- Call Particle Function on a device
- Grab the value of a Particle Variable from a device
- Remote (Over the Air) Firmware Uploads
- Device signaling (make it flash a rainbow of colors)
- Generate a new access token
- List your access tokens
- Delete an access token
- List Webhooks
- Add Webhook
- Delete Webhook
- Use a local particle cloud
- Claim core or photon
- Remove core or photon
- OAuth Client Creation (/v1/clients)
- Advanced OAuth topics