Upvise Client Library: User Class (.NET)
Overview
The User class of the Upvise Client Library allow to query and mnage Upvise Users. It requires a valid admin token.
User Sample on GithubUsage
Retrieve all usersusing UpviseClient; .... Query query = new Query(token); User[] users = User.selectUsers(query); foreach (User user in users) { Console.WriteLine(user.email + " " + user.name + " " + user.type); }Change a User name or Email
using UpviseClient; .... Query query = new Query(token); User[] users = User.selectUsers(query); foreach (User user in users) { if (user.email == "john@upvise.com") { user.changeName("My New Mame"); user.changeEmail("john2@upvise.com"); }Create a new Standard User
using UpviseClient; .... Query query = new Query(token); User.createUser(query, "John Doe", "john3@upvise.com", "XFKGTIH694857");Deactivate a user
using UpviseClient; .... Query query = new Query(token); User[] users = User.selectUsers(query); foreach (User user in users) { if (user.email == "test@upvise.com") { user.deactivate(); }