Modifing an API to take PayPal notifications, locate a Post by Tag ID and flip Published to Pending

Hey,
Have some pretty good research done, now I need some expertise...
Have a chunk of code that reads the return info from PayPal...
Now I have to get it to retrieve a Post by TagID
Once located I want to flip the Published status to Pending Review on that one Post.

I know the commands -- looked them up... but I've never created an API before.

Here's what I do have -- If this is your cup of tea -- we should talk!!
OK, couldn't post it without it getting scrambled... so see the attached screenshot!

Thanks!
Robert

  • Vaughan
    • Support/SLS MockingJay

    hi @RobertKwasny

    thanks for posting on the forum.

    I am not familar with the paypal API's at all, I will ping @Barry & @Vladislav who maybe able to provide you with some pointers or they might even have some code snippets they could point you to. this could take a bit longer for a response depending on how busy they are.

    hope this helps, if you require any further assistance, please don't hesitate to ask.

    thanks.

  • Barry
    • DEV MAN’s Mascot

    OK, couldn't post it without it getting scrambled... so see the attached screenshot!

    Can you stick it in something like https://gist.github.com/ or http://pastebin.com then we can see what you have so far a lot easier :slight_smile:

    Now I have to get it to retrieve a Post by TagID

    What do you mean by tagid? A tag could retrieve more than one post, so I assume you mean something else? or have someway of having unique tags per post?

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.