Replace clouddevices with weave in documentation and tests
Removed OAuth scope parameter as optional.
BUG:25627281
Change-Id: I1b2bce5b86fd7a0be89c446b5a13cc9c49244992
Reviewed-on: https://weave-review.googlesource.com/1538
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
(cherry picked from commit 88272d5b9e88dfd253c18aea4792fe57ee51696d)
Reviewed-on: https://weave-review.googlesource.com/1542
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
diff --git a/examples/daemon/README b/examples/daemon/README
index c767420..ef52a47 100644
--- a/examples/daemon/README
+++ b/examples/daemon/README
@@ -28,7 +28,7 @@
- "Step 2", "Exchange authorization code for tokens"
- "Step 3", obtain a registration ticket for your new weave device
HTTP Method: POST
- Request URI: https://www.googleapis.com/clouddevices/v1/registrationTickets
+ Request URI: https://www.googleapis.com/weave/v1/registrationTickets
Enter request body:
{
"userEmail": "me"
@@ -36,7 +36,7 @@
then "Send the request", a ticket id will be returned in
{
"userEmail": "user@google.com",
- "kind": "clouddevices#registrationTicket",
+ "kind": "weave#registrationTicket",
"expirationTimeMs": "1443204934855",
"deviceId": "0f8a5ff5-1ef0-ec39-f9d8-66d1caeb9e3d",
"creationTimeMs": "1443204694855",
@@ -80,7 +80,7 @@
- go to the oauthplayground used for registration ticket command
in "Step 3", send base.identify with
HTTP Method: POST
- Request URI: https://www.googleapis.com/clouddevices/v1/commands
+ Request URI: https://www.googleapis.com/weave/v1/commands
Enter request body:
{
"deviceId": "0f8a5ff5-1ef0-ec39-f9d8-66d1caeb9e3d",
@@ -99,11 +99,11 @@
except in "step 3", do:
HTTP Method: GET [not POST anymore]
- Request URI: https://www.googleapis.com/clouddevices/v1/commands?deviceId=0f8a5ff5-1ef0-ec39-f9d8-66d1caeb9e3d
+ Request URI: https://www.googleapis.com/weave/v1/commands?deviceId=0f8a5ff5-1ef0-ec39-f9d8-66d1caeb9e3d
"Send the request", you get all of the commands executed on your
device, find something like
- "kind": "clouddevices#command",
+ "kind": "weave#command",
"name": "_sample._hello",
"results": {
"_reply": "Hello cloud user"