{"id":21731784,"url":"https://github.com/evref-bl/wordpress-pharo-api","last_synced_at":"2025-03-20T23:43:23.911Z","repository":{"id":249948957,"uuid":"833035934","full_name":"Evref-BL/Wordpress-Pharo-API","owner":"Evref-BL","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-04T07:20:08.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-25T20:26:39.426Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Smalltalk","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Evref-BL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-24T08:23:09.000Z","updated_at":"2024-09-04T07:20:11.000Z","dependencies_parsed_at":"2024-11-26T04:47:42.207Z","dependency_job_id":null,"html_url":"https://github.com/Evref-BL/Wordpress-Pharo-API","commit_stats":null,"previous_names":["evref-bl/wordpress-pharo-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FWordpress-Pharo-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FWordpress-Pharo-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FWordpress-Pharo-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FWordpress-Pharo-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Evref-BL","download_url":"https://codeload.github.com/Evref-BL/Wordpress-Pharo-API/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244711938,"owners_count":20497417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-26T04:27:23.187Z","updated_at":"2025-03-20T23:43:23.891Z","avatar_url":"https://github.com/Evref-BL.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wordpress-Pharo-API\n\nThis is a client for the [WordpressAPI](https://developer.wordpress.org/rest-api/reference/posts/).\n\n## Installation\n\n```st\nMetacello new\n  githubUser: 'Evref-BL' project: 'Wordpress-Pharo-API' commitish: 'main' path: 'src';\n  baseline: 'WordpressPharoAPI';\n  load\n```\n\n## Connect the API to Wordpress\n\nThe first step before querying is to connect to the Wordpress API.\n\n\n```smalltalk\nwordpressAPI := WordpressPharoAPI new.\nwordpressAPI endpoint: '\u003cmywordpress\u003e'.\nwordpressAPI username: '\u003cmyusername\u003e' password: '\u003cmypassword\u003e'.\n```\n\n## Example\n\n### Get recent posts\n\n```smalltalk\nwordpressAPI getPosts\n```\n\n### Publish a post\n\n```smalltalk\nmyPost := WPPost new.\nmyPost date: DateAndTime tomorrow.\nmyPost status: 'draft'.\nmyPost title: 'FirstTest'.\nmyPost author: 28.\nmyPost content: 'First content'.\n\nwordpressAPI createPost: myPost.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevref-bl%2Fwordpress-pharo-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevref-bl%2Fwordpress-pharo-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevref-bl%2Fwordpress-pharo-api/lists"}