diff options
| author | Philipp Andreas <github@smurfy.de> | 2015-01-14 02:10:36 +0100 |
|---|---|---|
| committer | Philipp Andreas <github@smurfy.de> | 2015-01-14 02:10:36 +0100 |
| commit | 857d9547a9fc4a00c6e621fb54720d047ba90864 (patch) | |
| tree | d6aa0a6ea8bf76e6da7d353ff6084db82d583fa9 /app/qml/pages/AppStorePage.qml | |
| parent | e8f9a4da6c486ee4da9ae300019856976ff0a760 (diff) | |
First prototype of pebble app store integration
Diffstat (limited to 'app/qml/pages/AppStorePage.qml')
| -rw-r--r-- | app/qml/pages/AppStorePage.qml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/qml/pages/AppStorePage.qml b/app/qml/pages/AppStorePage.qml new file mode 100644 index 0000000..95bb2db --- /dev/null +++ b/app/qml/pages/AppStorePage.qml @@ -0,0 +1,24 @@ +import QtQuick 2.0 +import QtQml 2.1 +import Sailfish.Silica 1.0 +import org.pebbled 0.1 + +Page { + id: page + + PebbleStoreView { + id: webview + anchors.fill: parent + url: "https://auth.getpebble.com/oauth/authorize?client_id=f88739e8e7a696c411236c41afc81cbef16dc54c3ff633d92dd4ceb0e5a25e5f&response_type=token&mid=xxx&pid=xxx&platform=android&mobile=sign_in&redirect_uri=pebble%3A%2F%2Flogin" + + onLoginSuccess: { + console.log("ON Login " + accessToken); + webview.url = "https://apps-prod.getpebble.com/en_US/?access_token=" + accessToken + "#/watchfaces" + } + + onDownloadPebbleApp: { + console.log("ON DOWNLOAD " + title); + console.log(downloadUrl); + } + } +} |
