Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4 API: Resources: Include Legacy Forms and Landing Pages #66

Merged
merged 3 commits into from
May 28, 2024

Conversation

n7studios
Copy link
Contributor

@n7studios n7studios commented May 23, 2024

Summary

Updates the resource class' method when refreshing Forms and Landing Pages to include legacy items.

Makes get_html a public method, so that the main ConvertKit Plugin can fetch a legacy form using the embed_url property, as this includes the api_key required to authenticate and fetch the HTML to output. As the Plugin is using OAuth, it may not reliably always have a a historical API Key in its settings.

Testing

  • testRefreshForms: Updated test to confirm legacy form is included in the resultset, with the required data.
  • testRefreshLandingPages: Updated test to confirm legacy landing page is included in the resultset, with the required data.

Checklist

n7studios added 3 commits May 23, 2024 17:33
This allows the ConvertKit Plugin to directly fetch HTML using a legacy form’s `embed_url` property, which includes the API Key.
…nd landing pages

Uses the new v4 methods `get_legacy_forms` and `get_legacy_landing_pages` when refreshing/caching forms and landing pages through a resource class, to ensure that all available forms / landing pages are returned.
@n7studios n7studios added the enhancement New feature or request label May 23, 2024
@n7studios n7studios self-assigned this May 23, 2024
@n7studios n7studios requested review from a team, noelherrick and jenessawhite and removed request for a team May 28, 2024 13:13
@n7studios n7studios marked this pull request as ready for review May 28, 2024 13:13
@n7studios n7studios merged commit 525a8ee into v4-api May 28, 2024
5 checks passed
@n7studios n7studios deleted the v4-api-legacy-resources branch June 26, 2024 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants