From 52efa990c44616bb597959b1fe28144e6b6d8d42 Mon Sep 17 00:00:00 2001 From: Toby Allen Date: Fri, 17 Jul 2020 07:37:47 +0100 Subject: [PATCH 1/4] Updated docs in readme, Retrieving collections requires a siteid --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c6b77dc..9c5cfa3 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ $webflow->sites(); ### List Collections ``` -$webflow->collections(); +$webflow->collections($siteid); ``` ### Get All Items for a Collection (including paginated results) From c598b33dc0ab87169d7cd90ffdd54da3c9226846 Mon Sep 17 00:00:00 2001 From: Toby Allen Date: Mon, 27 Jul 2020 17:52:46 +0100 Subject: [PATCH 2/4] Update README.md I had some trouble getting $webflow->domains and $webflow->publish to work, so I have updated the readme with full instructions. I would like to rearrange the order but wasnt sure if that was ok. --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 9c5cfa3..df9c4a3 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,23 @@ $webflow->info(); $webflow->sites(); ``` +### Get Specific Site +``` +$webflow->site($siteid); +``` + +### Publish Site +``` +$webflow->publishSite($siteid,['domains' => ['mydomain.webflow.io', 'mycustomdomain.example.com']]); +``` + +### List Domains +``` +$webflow->domains($siteid); +``` +__If you only have a webflow.io domain this will return an empty array []__ + + ### List Collections ``` $webflow->collections($siteid); @@ -68,6 +85,11 @@ $webflow->updateItem($collectionId, $itemId, $fields); $webflow->removeItem($collectionId, $itemId); ``` +Publish Your Site +-- + + + ## Installation From 3f0aabc6ac3a1eb47414d77d57a7a1e640764bfa Mon Sep 17 00:00:00 2001 From: Toby Allen Date: Sat, 16 Jan 2021 12:38:06 +0000 Subject: [PATCH 3/4] Provide Info about how to Publish Changes. --- README.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index df9c4a3..50a7d92 100644 --- a/README.md +++ b/README.md @@ -37,12 +37,7 @@ $webflow->sites(); ### Get Specific Site ``` -$webflow->site($siteid); -``` - -### Publish Site -``` -$webflow->publishSite($siteid,['domains' => ['mydomain.webflow.io', 'mycustomdomain.example.com']]); +$webflow->site($siteId); ``` ### List Domains @@ -85,9 +80,10 @@ $webflow->updateItem($collectionId, $itemId, $fields); $webflow->removeItem($collectionId, $itemId); ``` -Publish Your Site --- - +### Publish Site +``` +$webflow->publishSite($siteId,['domains' => ['mydomain.webflow.io', 'mycustomdomain.example.com']]); +``` From d489d3be48a8c8a89a81319c31cb0239d2b043a6 Mon Sep 17 00:00:00 2001 From: Toby Allen Date: Sat, 16 Jan 2021 12:42:30 +0000 Subject: [PATCH 4/4] Publish comment --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 50a7d92..516912a 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,7 @@ $webflow->removeItem($collectionId, $itemId); ``` ### Publish Site +Before changes go live, you must publish them to your domains. ``` $webflow->publishSite($siteId,['domains' => ['mydomain.webflow.io', 'mycustomdomain.example.com']]); ```