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

Accessing Goals from the API #1423

Closed
jam3sn opened this issue Jan 25, 2017 · 3 comments
Closed

Accessing Goals from the API #1423

jam3sn opened this issue Jan 25, 2017 · 3 comments
Assignees
Milestone

Comments

@jam3sn
Copy link

jam3sn commented Jan 25, 2017

Hi There,

I was wondering if you'd be able to add Goals to the Form API. It has donations which is great but I'd love to be able to access the Goals in this too?

I saw your response here: https://wordpress.org/support/topic/give-api-donation-form-goal-retrieve/ not my original question but didn't see him add it to the issues.

Thanks!

@DevinWalker DevinWalker added this to the 1.9 milestone Feb 6, 2017
@DevinWalker DevinWalker modified the milestones: 1.9, 2.0 Apr 10, 2017
@DevinWalker DevinWalker modified the milestones: 1.8.9, 2.0 May 26, 2017
@DevinWalker
Copy link
Member

@mehul0810 for this one please ensure that goals are accessible via:

  1. Stats endpoint
  2. Donation forms endpoint

@mehul0810
Copy link
Contributor

@DevinWalker @ravinderk I've created few snapshots for integrating Goals in Stats as well as Donation Forms API Endpoint. The Snapshots attached will provide a basic idea how it will look with goals integrated in the api endpoints

For Stats API Endpoint
goals_with_stats_api_endpoint

For Donation Forms API Endpoint
goals_with_donations_endpoint

Please check and let me know your thoughts on it so that we can integrate the best possible solution for this.

@DevinWalker
Copy link
Member

@mehul0810 the stats api endpoint should not have goals wrapping the entire output. It should appear as the forms API endpoint does as another item in the list. Also it should be goal not goals as there's only one goal you can set per form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants