Skip to content

Instantly share code, notes, and snippets.

@Katharine
Created December 7, 2016 15:06
Show Gist options
  • Save Katharine/8f9170c6bd43e6ab13dfe286c611e269 to your computer and use it in GitHub Desktop.
Save Katharine/8f9170c6bd43e6ab13dfe286c611e269 to your computer and use it in GitHub Desktop.
// Paste the code below into the JavaScript console while logged in to CloudPebble for
// a link to a zip file containing all your CloudPebble projects.
console.log("Requesting export...");
Ajax.Post('/ide/transition/export', {}).then(function(data) {
console.log("Request result: ");
console.log(data);
console.log("Waiting for archive. This may take a long time.");
return Ajax.PollTask(data.task_id, {on_bad_request: console.error});
}).then(function(result) {
console.log("Export succeeded. Download it at " + result);
}).catch(function(error) {
console.error("Export failed.");
console.error(error);
});
@brookpatten
Copy link

Thank you for this and all your other hard work at Pebble. I enjoyed working with all your excellent developer tools and apis.

@Sryn
Copy link

Sryn commented Dec 8, 2016

Thank you Katharine. Your tools have been a delight to use over these years.

Sryn

P.S. To others who might be baffled by the 'JavaScript Console' like I was:

  • Use Chrome Browser
  • Login into CloudPebble
  • Open Developer Tools on the Chrome Browser (F12 key)
  • Choose the Console Tab
  • Copy and Paste Katharine's Export.js code above into the cursor in the Console Tab
  • Press Enter on your keyboard
  • Wait for the Console to return you a link like 'https://export.cloudpebble.net/0bb6df7964c5456195e1e6185cbad4f1/cloudpebble-export.zip'. About 5 seconds for my 1.65MB worth of uncompressed code.
  • Click on that link and Chrome will download the zip file for you.
  • End

@ProggroP
Copy link

ProggroP commented Dec 8, 2016

Thx

@ltpitt
Copy link

ltpitt commented Dec 8, 2016

Pebble ecosystem is an example of usability and modernity.

<3 Thanks <3

@tertty
Copy link

tertty commented Dec 8, 2016

Goodbye and thanks for all the fish!

@timmui
Copy link

timmui commented Dec 9, 2016

Thanks for all that you've done (and continue to do) for the community!

@spinalcode
Copy link

Worked perfectly! Thanks :-)

@klejnov
Copy link

klejnov commented Jul 30, 2018

I'm a developer. How can I continue to manage my application?
http://store.rebble.io/app/5aee3639f38588014500083b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment