PyzeUnity.IPyzeIdentity Interface Reference

PyzeIdentity You can use this class to send the user's traits to Pyze.
You can identify a user using setUserIdentity method and reset the user's identity using resetUserIdentity method More...

Public Member Functions

void SetUserIdentifier (string userId)
 Set User Identifier. Use this to identify users.
Examples include: username, userid, email address, phone number, or a hashedId.
Call this when a user logs in, registers or signs up. More...
 
void ResetUserIdentifier ()
 Resets App specific User Identifier. Call this when a user logs off. More...
 
void PostTraits (Dictionary< string, object > attributes)
 Post the user details traits.
Here are some example traits you can use
Send user traits as a dictionary. For example
attributes.Add("address","585 Broadway Street, Redwood City, California 94063");
attributes.Add("age","25");
attributes.Add("avatar", "https://mark.com");
attributes.Add("birthday", "01-04-1986");
attributes.Add("createdAt","Date String");
attributes.Add("description","Web Hosting Specialist");
attributes.Add("email", "myEmail@gmail.com");
attributes.Add("firstName", "Mark");
attributes.Add("gender","male");
attributes.Add("lastName", "Hive");
attributes.Add("name", "Mark Hive");
attributes.Add("phoneNumber","415 555 1212");
attributes.Add("title","Web Hosting Specialist");
attributes.Add("username", "markh");
attributes.Add("website", "https://pyze.com");
attributes.Add("facebookId","USER_facebookId");
attributes.Add("twitterUsername","USER_twitterId");
attributes.Add("snapchatUsername", "USER_snapchatId");
attributes.Add("linkedInProfileId", "USER_linkedinId");
attributes.Add("instagramUserId", "USER_instagramId"); More...
 

Detailed Description

PyzeIdentity You can use this class to send the user's traits to Pyze.
You can identify a user using setUserIdentity method and reset the user's identity using resetUserIdentity method

Member Function Documentation

void PyzeUnity.IPyzeIdentity.PostTraits ( Dictionary< string, object >  attributes)

Post the user details traits.
Here are some example traits you can use
Send user traits as a dictionary. For example
attributes.Add("address","585 Broadway Street, Redwood City, California 94063");
attributes.Add("age","25");
attributes.Add("avatar", "https://mark.com");
attributes.Add("birthday", "01-04-1986");
attributes.Add("createdAt","Date String");
attributes.Add("description","Web Hosting Specialist");
attributes.Add("email", "myEmail@gmail.com");
attributes.Add("firstName", "Mark");
attributes.Add("gender","male");
attributes.Add("lastName", "Hive");
attributes.Add("name", "Mark Hive");
attributes.Add("phoneNumber","415 555 1212");
attributes.Add("title","Web Hosting Specialist");
attributes.Add("username", "markh");
attributes.Add("website", "https://pyze.com");
attributes.Add("facebookId","USER_facebookId");
attributes.Add("twitterUsername","USER_twitterId");
attributes.Add("snapchatUsername", "USER_snapchatId");
attributes.Add("linkedInProfileId", "USER_linkedinId");
attributes.Add("instagramUserId", "USER_instagramId");

Parameters
traitsTraits.
void PyzeUnity.IPyzeIdentity.ResetUserIdentifier ( )

Resets App specific User Identifier. Call this when a user logs off.

void PyzeUnity.IPyzeIdentity.SetUserIdentifier ( string  userId)

Set User Identifier. Use this to identify users.
Examples include: username, userid, email address, phone number, or a hashedId.
Call this when a user logs in, registers or signs up.

Parameters
userIdUser identifier.

The documentation for this interface was generated from the following file:
  • src/PyzeExterns.cs