Beispiel #1
0
        public static void AddRelatedAccounts(string accessToken)
        {
            // Step 1: add a service provider
            var serviceProviderId = ServiceProviderOperations.AddServiceProviderAccount(accessToken);

            //
            // Step 2: set the service provider permissions and limits
            ServiceProviderOperations.SetServiceProviderAccountPermissionAndLimits(accessToken, serviceProviderId);
            //
            // Step 3: add an organization to the service provider created at the Step 1.
            var organizationID = OrganizationOperations.AddOrganizationAccount(accessToken, serviceProviderId);

            //
            // Step 4: set the organization permissions and limits
            OrganizationOperations.SetOrganizationAccountPermissionsAndLimits(accessToken, organizationID);
            //
            // Step 5: add an user to the organization created at the Step 3.
            var userID = UserOperations.AddUserAccount(accessToken, organizationID);

            //
            // Step 6: set the user permissions and limits
            UserOperations.SetUserAccountPermissionsAndLimits(accessToken, userID);
            //
            // Step 7: add an extension to the user created at the Step 5.
            ExtensionOperations.AddExtensionAccount(accessToken, userID);

            Console.Read();
        }
Beispiel #2
0
        public static void SetServiceProviderAccountPermissionsAndLimits(string accessToken)
        {
            string serviceProviderId = "CHANGEME";

            ServiceProviderOperations.SetServiceProviderAccountPermissionAndLimits(accessToken, serviceProviderId);

            Console.Read();
        }
Beispiel #3
0
        public static void AddServiceProviderAccount(string accessToken)
        {
            ServiceProviderOperations.AddServiceProviderAccount(accessToken);

            Console.Read();
        }