Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,30 +1,56 @@
{
"request": {
"method": "GET",
"urlPath": "/wpcom/v2/sites/106707880/dashboard/cards-data/",
"queryParameters": {
"_locale": {
"matches": "(.*)"
},
"cards": {
"equalTo": "todays_stats,posts"
}
"request": {
"method": "GET",
"urlPath": "/wpcom/v2/sites/106707880/dashboard/cards-data/",
"queryParameters": {
"_locale": {
"matches": "(.*)"
},
"cards": {
"equalTo": "todays_stats,posts,pages"
}
},
"response": {
"status": 200,
"jsonBody": {
"todays_stats": {
"views": 56,
"visitors": 44,
"likes": 19,
"comments": 0
}
},
"response": {
"status": 200,
"jsonBody": {
"todays_stats": {
"views": 56,
"visitors": 44,
"likes": 19,
"comments": 0
},
"posts": {
"has_published": true,
"draft": [],
"scheduled": []
},
"pages": [
{
"id": 51,
"title": "Blog",
"content": "Introduce yourself and your blog My Latest Posts • • • • • •",
"status": "publish",
"modified": "2023-05-18 10:33:38",
"date": "2023-05-18 10:33:38"
Comment on lines +34 to +35
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i've seen in some mocks where the date value is set to today's date. would having this (and other dates in this response) hardcoded cause any issues in the future? (e.g. page not appearing because it's an old page or something like that)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as this is not something time sensitive (not stats / messages / reviews / posts), the pages should be still shown in the card regardless of creation time 🤔. I haven't heard of any requirements for this card not to show the pages of a certain age. So if the card stops showing them, this would be an issue.

},
"posts": {
"has_published": true,
"draft": [],
"scheduled": []
{
"id": 30,
"title": "Cart",
"content": "",
"status": "publish",
"modified": "2023-02-03 09:46:32",
"date": "2023-02-03 09:46:32"
},
{
"id": 31,
"title": "Checkout",
"content": "",
"status": "publish",
"modified": "2023-02-03 09:46:32",
"date": "2023-02-03 09:46:32"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"request": {
"method": "GET",
"urlPathPattern": "/wpcom/v2/sites/106707880/external-services",
"queryParameters": {
"locale": {
"matches": "(.*)"
},
"type": {
"equalTo": "publicize"
}
}
},
"response": {
"status": 200,
"jsonBody": {

"services": {
"facebook": {
"ID": "facebook",
"label": "Facebook",
"type": "publicize",
"description": "Publish your posts to your Facebook timeline or page.",
"genericon": {
"class": "facebook-alt",
"unicode": "\\f203"
},
"icon": "http://i.wordpress.com/wp-content/admin-plugins/publicize/assets/publicize-fb-2x.png",
"connect_URL": "https://public-api.wordpress.com/connect/?action=request&kr_nonce=c98be927cc&nonce=31e8eb987b&for=connect&service=facebook&blog=215224204&kr_blog_nonce=3d5d1f5eff&magic=keyring",
"multiple_external_user_ID_support": true,
"external_users_only": true,
"jetpack_support": true,
"jetpack_module_required": "publicize"
},
"twitter": {
"ID": "twitter",
"label": "Twitter",
"type": "publicize",
"description": "Publish your posts to your Twitter account.",
"genericon": {
"class": "twitter",
"unicode": "\\f202"
},
"icon": "http://i.wordpress.com/wp-content/admin-plugins/publicize/assets/publicize-twitter-2x.png",
"connect_URL": "https://public-api.wordpress.com/connect/?action=request&kr_nonce=c98be927cc&nonce=49e6f85e72&for=connect&service=twitter&blog=215224204&kr_blog_nonce=3d5d1f5eff&magic=keyring",
"multiple_external_user_ID_support": false,
"external_users_only": false,
"jetpack_support": true,
"jetpack_module_required": "publicize",
"status": "unsupported"
},
"linkedin": {
"ID": "linkedin",
"label": "LinkedIn",
"type": "publicize",
"description": "Publish your posts to your LinkedIn profile.",
"genericon": {
"class": "linkedin",
"unicode": "\\f207"
},
"icon": "http://i.wordpress.com/wp-content/admin-plugins/publicize/assets/publicize-linkedin-2x.png",
"connect_URL": "https://public-api.wordpress.com/connect/?action=request&kr_nonce=c98be927cc&nonce=9ed430da6c&for=connect&service=linkedin&blog=215224204&kr_blog_nonce=3d5d1f5eff&magic=keyring",
"multiple_external_user_ID_support": false,
"external_users_only": false,
"jetpack_support": true,
"jetpack_module_required": "publicize"
},
"tumblr": {
"ID": "tumblr",
"label": "Tumblr",
"type": "publicize",
"description": "Publish your posts to your Tumblr blog.",
"genericon": {
"class": "tumblr",
"unicode": "\\f214"
},
"icon": "http://i.wordpress.com/wp-content/admin-plugins/publicize/assets/publicize-tumblr-2x.png",
"multiple_external_user_ID_support": true,
"external_users_only": false,
"connect_URL": "https://public-api.wordpress.com/connect/?action=request&kr_nonce=c98be927cc&nonce=99d8ed4fcc&for=connect&service=tumblr&blog=215224204&kr_blog_nonce=3d5d1f5eff&magic=keyring",
"jetpack_support": true,
"jetpack_module_required": "publicize"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"status": 200,
"jsonBody": {
"dashboard_card_domain": false,
"dashboard_card_free_to_paid_plans": true
"dashboard_card_free_to_paid_plans": true,
"dashboard_card_pages": true
}
}
}
Loading