Creating accounts automatically through WP-API
-
Hello,
let′s see if I can explain what I need in a somewhat understandable way.
Im trying to start a crowdfunding campaign and in the center of the project is a wp-website which is supposed to “connect” all the members. What I now want to do is to give each backer (person who donates money on Indiegogo) an account on my website (maybe even different membership levels so I can divide the content). There will also be a “free” membership level, thats why I sort of need to distinguish between those two groups.So I thought I can use both API′s and write a litte program that does the following:
1. Checks periodically if there are “new” backers (status: captured/pending) via the Indiegogo API
2. If so, create a new account (via the WP-API??), send it to the backers email (unique token or URL?) and set the status to “in-fulfillment”
3. As soon as the account has been verified by the backer, set the status to “fulfilled”That′s the theory.
My main goal with those different membership levels is to devide the content. Usually I would use one of the many membership plugins on the market because they make it very easy to set up different levels. With my automatic approach I′m not sure if that is feasible with a Plugin (I didnt find one where the API looked like it would support that).
So my Question: Is it possible to create similiar membership levels in WP itself? Im aware of the standard user leves in WP (Admin, Editor, Contributor,..) but they are more about publishing rights or editing possibilites.If it′s not possible this way or if there are easier ways:
Does anybody know a plugin which supports my approach or a different approach I haven′t thought of yet?As you might see I have little to no clue when it comes to programming. I would be very grateful for any help or tips I can get ??
Indiegogo API: https://developer.indiegogo.com/docs/campaign-contributions
I was planning on doing the periodical request with Cronjob. Im not sure which programming language I should use and neither do I know if a databank is necessary.
I really hope someone can give me a hand here, I would really appreciate it!
Regards Dennis
- The topic ‘Creating accounts automatically through WP-API’ is closed to new replies.