MemberSpace API
  • Welcome
  • Getting Started
    • Install Code
      • Multi-subdomain site
    • Using query parameters
  • Javascript API
    • Signature
      • Events
        • MemberSpace.ready
        • MemberSpace.member.info
        • MemberSpace.member.logout
        • MemberSpace.member.registration
        • MemberSpace.conversion
      • Functions
        • MemberSpace.getMemberInfo
        • MemberSpace.getMemberMetadata
        • MemberSpace.updateMemberMetadata
        • MemberSpace.clearMemberMetadata
      • Flags
        • MemberSpace.ready
      • Structures
        • MemberInfo
    • Guides
      • Getting Member Information - SSR
      • Getting Member Information - SPA
    • Migration Guide
  • Protecting content
    • Showing/Hiding Elements
  • Embedding
    • Member Information
      • Embedding Member Info
      • Prefilling Forms
      • Available Data Types
  • Links
    • Help Center
    • Admin
    • Sign Up
Powered by GitBook
On this page

Was this helpful?

  1. Javascript API
  2. Signature

Functions

PreviousMemberSpace.conversionNextMemberSpace.getMemberInfo

Last updated 3 years ago

Was this helpful?

These functions can be used anywhere in your custom code, but you need to make sure the MemberSpace widget is loaded and ready.

We suggest that you use them only from within an handler or once the is set. There is an with a promise interface that can help delay executing your code until the widget is ready.

In case of async functions, if an error occurs the promise will get rejected. Please make sure to handle promise rejection in your code!

event
MemberSpace.onReady flag
example code