Task 4: Create pending profiles
Developer Documentation: Creating Pending Profiles in MOTI
Overview
This document provides guidelines for developers to create pending profiles within the MOTI platform. Developers are expected to gather data from the Linktree website, map this data, and use it to create pending profiles on MOTI. Pending profiles are defined as profiles that include emails and social links from other platforms but are not yet active on MOTI.
Objectives
Data Collection from Linktree:
Gather email addresses and social links from Linktree.
Ensure the data is accurately mapped and formatted for use in MOTI.
Creating Pending Profiles:
Use the collected and mapped data to create profiles on MOTI.
Ensure that these profiles are marked as pending until further verification or user action.
Step-by-Step Guide
1. Data Collection from Linktree
Access Linktree:
Go to the Linktree website and log in with your credentials.
Extract Data:
Collect the following information for each user:
Email address
Social media links (e.g., Twitter, Instagram, LinkedIn)
Wallet addresses (if available)
Data Mapping:
Organize the extracted data into a structured format. Example:
2. Creating Pending Profiles in MOTI
API Endpoint for Profile Creation:
Use the MOTI API endpoint to create profiles.
Endpoint:
POST /pendingProfile/create
Profile Object:
Construct the profile object with the mapped data
API Request:
Send a
POST
request to the API endpoint with the profile object.Handle responses to ensure profiles are created successfully.
Example request:
Key Considerations
Data Accuracy: Ensure all data collected from Linktree is accurate and correctly mapped before creating profiles.
Error Handling: Implement robust error handling to manage cases where:
The email already exists in the MOTI database.
Required fields are missing or improperly formatted.
API requests fail due to network issues or server errors.
Security: Handle all personal data securely, adhering to data protection regulations and best practices.
Conclusion
By following this guide, developers can efficiently gather data from Linktree and use it to create pending profiles on the MOTI platform. These profiles will contain essential information such as email addresses and social links, awaiting further verification or user action to become fully active on MOTI.
For any further questions or support, please contact the MOTI development team.
Last updated