createWithSession
- Home
- Accounts & Sessions
- User
- createWithSession
createWithSession
Creates a new user and a session for that user.
Parameters
Name | Description |
node_id optional | Node ID |
domain optional | Domain |
external_provider_name optional | External Provider Name |
external_user_identifier optional | External User Identifier |
external_access_token optional | External Access Token |
email optional | Email Address |
username optional | Username |
password optional | Password |
subdir optional | Subdir |
first_name optional | First name |
last_name optional | Last Name |
display_name optional | Display Name |
birthday optional | Date of Birth (Unix Timestamp) |
gender optional | Gender |
avatar optional | Avatar |
coupon_code optional | Coupon Code |
ip optional | IP Address |
account_status optional | Account Status |
phone optional | Phone Number |
address optional | Street Address |
address_2 optional | Street Address 2 |
city optional | City |
state optional | State |
zip optional | Zip Code |
country optional | Country |
referring_url optional | Referring URL |
last_blog_visited optional | Last Blog Visited |
add_friend optional | Add Friend |
join_group optional | Join Group |
group_member_status optional | Group Member Status |
quote optional | Personal Quote |
timezone optional | Timezone |
account_type optional | Account Type |
message_privacy optional | Message Privacy |
friends_approval optional | Friends Approval |
comments_approval optional | Comments Approval |
geo_zip optional | Geo Zip |
geo_market optional | Geo Market |
email_notification optional | Email Notification |
locale optional | Locale (Language/Country Code) |
is_searchable optional | Appears in Search Results |
dob_display optional | Birthday Display |
location optional | Custom Location |
group_broadcast optional | Receive Group Broadcasts |
show_online_status optional | Show Online Status |
allow_html_comments optional | Allow HTML Comments |
auto_generate_subdir optional | Allow HTML Comments |
add_to_tier optional | Add to Tier |
parent_user optional | Parent User |
skip_default_friends optional | Skip Default Friends |
send_confirmation_email optional | Send Confirmation Email |
use_access_token optional | Use Access Token (in place of CoreU/CoreX) |
Request Syntax
https://services.onesite.com/1/user/createWithSession.json?username=newuser47&first_name=Jane&last_name=Doe&email=jane.doe@example.com&gender=f&birthday=2527200&password=6GZEvpLt9EwKJ4Fk&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
{ "code":100, "message":"Session generated.", "content":{ "session":{ "CoreU":"6df3f26709b55aeb1259f383929688bd", "CoreX":"dc1457f5d29ecc1002fea601eae3c1ad", "Expires":1549061771, "State":"valid", "RemoteIP":"209.217.36.183", "Agent":"PECL::HTTP/1.6.6 (PHP/5.3.6)", "User":{ "UserID":230171854, "Username":"newuser47", "Email":"jane.doe@example.com", "Site":{ "SiteID":234957401, "Subdir":"230171854", "URL":"http://www.onesitedemo.com/230171854" }, "Avatar":"http://services.onesite.com/resources/images/unisex_v4b.gif?ver=13.06.21", "Name":"Jane", "AccountStatus":"good-standing", "DateCreated":1548975370, "Profile":{ "Birthday":2570400, "FirstName":"Jane", "LastName":"Doe", "Gender":"Female", "Language":"en_US" }, "Preferences":{ "BirthdayDisplay":"private", "FriendshipApproval":0, "CommentsApproval":1, "MessagePrivacy":0, "EmailNotification":"ongoing", "Searchable":true, "ShowOnlineStatus":true }, "ExternalAccounts":[ ], "Tiers":[ ] } } } } |
Service Information
Service | user |
Method | createWithSession |
Type | REST |
Response Types | JSON, XML |