{"id":18675198,"url":"https://github.com/knoxilla/wcdp-mobilize","last_synced_at":"2026-05-01T18:32:27.231Z","repository":{"id":237439190,"uuid":"748653185","full_name":"knoxilla/wcdp-mobilize","owner":"knoxilla","description":"A magnificent repo for turning Mobilize org dashboard content into a feed for Wordpress","archived":false,"fork":false,"pushed_at":"2024-01-26T13:22:28.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-18T12:07:47.736Z","etag":null,"topics":["jq","json","syndication","wordpress"],"latest_commit_sha":null,"homepage":"https://washtenawdems.org/","language":"HTML","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/knoxilla.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-01-26T13:22:13.000Z","updated_at":"2024-01-26T13:26:02.000Z","dependencies_parsed_at":"2024-06-02T14:10:19.090Z","dependency_job_id":null,"html_url":"https://github.com/knoxilla/wcdp-mobilize","commit_stats":null,"previous_names":["knoxilla/wcdp-mobilize"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/knoxilla/wcdp-mobilize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knoxilla%2Fwcdp-mobilize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knoxilla%2Fwcdp-mobilize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knoxilla%2Fwcdp-mobilize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knoxilla%2Fwcdp-mobilize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knoxilla","download_url":"https://codeload.github.com/knoxilla/wcdp-mobilize/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knoxilla%2Fwcdp-mobilize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32508901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["jq","json","syndication","wordpress"],"created_at":"2024-11-07T09:23:38.044Z","updated_at":"2026-05-01T18:32:27.205Z","avatar_url":"https://github.com/knoxilla.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WCDP Mobilize API Feed Generator\n\nA magnificent repository using the [Mobilize API](https://github.com/mobilizeamerica/api) to pull events \u0026 interest forms from a given org_id's dashboard and convert them into html fragments suitable for embedding into Wordpress via shortcodes.\n\n## Running\n\nRequirements include the ability to run bash scripts, curl, and an installation of [jq](https://jqlang.github.io/jq/download/) for json parsing.\n\nTo run manually/locally, the main script is `doit` and when invoked it will call \n\n* `getit` to fetch \u0026 format the json content\n* `fragit` to convert the json to HTML fragments via jinja templates\n* `mobit` to SFTP the fragments to the WP installation\n\nin succession.  Then the script will purge the page_caches in WP for the locations where the fragments are embedded via WP shortcode, ensuring the new snippets show up to site viewers.\n\n## Scheduling\n\nSet up a cron job to suit your needs (perhaps once every 15 minutes) and let it rip.  If your cron job runs on the target WP host you don't need the mobit script, rather you only need to move the fragments into place for WP to find them.\n\n## Beware!\n\nAs always, tread with care when collecting info via a URL and displaying it on your site.  These scripts could and should be hardened - pull requests welcome!\n\n## Notes\n\nThere is no API key or other authentication needed for the Mobilize API at this time.\n\nConstants at the top of `getit` are the main way to customize the API query by org_id, zip code, radius, and event types.\n\nTwo queries are made, with the second one fetching only interest forms, which are not returned by default with other event types.  The two resulting lists will be combined into a single json object.\n\nIf you don't need interest forms (e.g. volunteer signups) you can comment out that call.\n\nThe SFTP to WP step assumes you have a named ssh config for the host in question and have public keys and an agent set up for auth.\n\n\n\n*Fin*\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknoxilla%2Fwcdp-mobilize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknoxilla%2Fwcdp-mobilize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknoxilla%2Fwcdp-mobilize/lists"}