-
Notifications
You must be signed in to change notification settings - Fork 30
Problems pushing content to the API #57
Comments
When pushing content to the API, the URL is /story and it is making a POST request: nprapi-wordpress/classes/NPRAPIWordpress.php Lines 547 to 554 in 26a44bf
Erin says that NPR is taking another look to see if they can determine what the problem is. |
I'm not even seeing the "org ID not set" error that should be showing in my server log, because I'm attempting to push to the sandbox without an Org ID. nprapi-wordpress/classes/NPRAPIWordpress.php Lines 582 to 585 in 26a44bf
|
It's because this URL parameter is no longer set: nprapi-wordpress/push_story.php Lines 124 to 128 in a58353b
That URL parameter was set before #47, and is not set afterwards. The pull request removed the |
This fixes the issue described in #57, where the URL parameter ds_npr_update_push was removed along with the 'Push to NPR' submit button, but the URL parameter triggering the nprstory_api_push function was not changed.
With an org ID set:
|
That's fixed by 63c25f0 |
Ben, I pulled a repo with this branch and successfully posted to the API. Success! |
👍 |
#60 has merged, so moving this to the "Done" category. |
Reported by @eteare:
The text was updated successfully, but these errors were encountered: