Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Support request] Register new member with @angular/http always delivers my page

Simple Membership Plugin › Forums › Simple Membership Plugin › Register new member with @angular/http always delivers my page

Tagged: API post register new member

  • This topic has 2 replies, 2 voices, and was last updated 5 years, 6 months ago by cnr909.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 14, 2020 at 7:51 am #19782
    max.maeuschen
    Participant

    Trying to register a new member following this article

    https://simple-membership-plugin.com/simple-membership-api-creating-member-account-using-http-post-request/

    always delivers my (start-)page als result.

    Here’s part of my code:

    import { Http } from '@angular/http';
    
    doRegister() {
      let test: any = {
        'swpm_api_action_: 'create',
        'key': MYKEY,
        'first_name': 'Ted',
        'last_name': 'Tester',
        'email': 'ted.tester@tester.de'
      }
      return this.http.post(myurl,test,{})
    }

    Can you help me? Thanks in advance.

    February 14, 2020 at 1:21 pm #19783
    max.maeuschen
    Participant

    If I try to use get like

    doRegister() {
      return this.http.get(myurl + '?swpm_api_action=create&key=MYKEY&first_name=Ted&last_name=Tester&email=ted.tester@tester.de',{});
    }

    I get the following response

    {“result”:”failure”,”message”:”Missing one of the mandatory fields: first_name, last_name, email”}

    Is there anyone to help? Thanks in advance.

    November 30, 2020 at 7:50 pm #21632
    cnr909
    Participant

    Hi Max.Maeuschen,

    I have the same error, if I make a post request with json data it returns the homepage sourcecode. But if I use url parameters with post request I the same error you get “Missing one of the mandatory fields: first_name, last_name, email”.

    Did you manage to solve it?

    Thanks
    Conor

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy