It configures the SDK with required parameters.

@param activity Activity where the survey will be presented.
@param clientId Found in API section of the Wootric's admin panel.
@param accountToken Found in Install section of the Wootric's admin panel.
515003
public static Wootric init(Activity activity, String clientId, String accountToken) {
        Wootric local = singleton;
        if(local == null) {
            synchronized (Wootric.class) {
                local = singleton;
                if (local == null) {
                    checkNotNull(activity, "Activity");
                    checkNotNull(clientId, "Client Id");
                    checkNotNull(accountToken, "Account Token");
                    singleton = local = new Wootric(activity, clientId, accountToken);
                }
            }
        }

        return local;
    }
1364699
public Account updateAccount(final String accountCode, final Account account) {
        return doPUT(Account.ACCOUNT_RESOURCE + "/" + accountCode, account, Account.class);
    }
808267
protected void createServiceAuthorizationCheckAction(final Flow flow) {
        val serviceAuthorizationCheck = createActionState(flow,
            CasWebflowConstants.STATE_ID_SERVICE_AUTHZ_CHECK, "serviceAuthorizationCheck");
        createStateDefaultTransition(serviceAuthorizationCheck, CasWebflowConstants.STATE_ID_INIT_LOGIN_FORM);
    }
727263
@Override
    public boolean isAccountActive(String account) throws AccountCredentialsNotFoundException {
        AccountInfo info = this.accountRepo.findBySubdomain(account);
        if (info == null) {
            throw new AccountCredentialsNotFoundException("no account found where accountId =  " + account);
        }
        return info.getStatus().equals(AccountStatus.ACTIVE);
    }
892000
public void createClonedActionState(final Flow flow, final String actionStateId, final String actionStateIdToClone) {
        val generateServiceTicket = getState(flow, actionStateIdToClone, ActionState.class);
        val consentTicketAction = createActionState(flow, actionStateId);
        cloneActionState(generateServiceTicket, consentTicketAction);
    }
1030769
@Override
    @SuppressWarnings("checkstyle:linelength")
    public Page<Account> firstPage(final TwilioRestClient client) {
        Request request = new Request(
            HttpMethod.GET,
            Domains.API.toString(),
            "/2010-04-01/Accounts.json",
            client.getRegion()
        );

        addQueryParams(request);
        return pageForRequest(client, request);
    }
153011
public void createAccount() {
    mAccount = new AccountFactory(mAccountConfig).setHttpClient(httpclient).createAccount();
    mAccess = mAccount.getAccess();
    if (mRegion != null) {
      mAccess.setPreferredRegion(mRegion);
    }
  }
785904
public synchronized void register( String clientID ) throws InvalidClientIDException
    {
        if (!clientIDs.add(clientID))
        {
            log.error("Client ID already exists : "+clientID);
            throw new InvalidClientIDException("Client ID already exists : "+clientID);
        }
        log.debug("Registered clientID : "+clientID);
    }
1078582
protected void startMakingOAuthAPICall(final String code, final String baseDomain) {
        if (apiCallStarted.getAndSet(true)) {
            return;
        }
        showSpinner();
        if (baseDomain != null) {
            mSession.getAuthInfo().setBaseDomain(baseDomain);
            BoxLogUtils.nonFatalE("setting Base Domain", baseDomain, new RuntimeException("base domain being used"));
        }
        new Thread(){
            public void run(){
                try {
                    BoxAuthenticationInfo sessionAuth = BoxAuthentication.getInstance().create(mSession, code).get();

                    String restrictedUserId = getIntent().getStringExtra(EXTRA_USER_ID_RESTRICTION);
                    if (!SdkUtils.isEmptyString(restrictedUserId) && !sessionAuth.getUser().getId().equals(restrictedUserId)){
                        // the user logged in as does not match the user id this activity was restricted to, treat this as a failure.
                        throw new RuntimeException("Unexpected user logged in. Expected "+ restrictedUserId + " received " + sessionAuth.getUser().getId());
                    }
                    dismissSpinnerAndFinishAuthenticate(sessionAuth);
                } catch (Exception e){
                    e.printStackTrace();
                    dismissSpinnerAndFailAuthenticate(e);
                }


            }
        }.start();
    }
363732
public static void initialize(String token) {
    if (token == null) {
      throw new IllegalArgumentException("Token should be defined.");
    }
    initialize(new ClientProperties(token, null, null));
  }
1334616
private void updateActivity(ActivityType type, String name, String streamingUrl) {
        if (name == null) {
            activity = null;
        } else if (streamingUrl == null) {
            activity = new ActivityImpl(type, name, null);
        } else {
            activity = new ActivityImpl(type, name, streamingUrl);
        }
        websocketAdapter.updateStatus();
    }
1023383
public void setAccessToken(String accessToken) {
        for (Authentication auth : authentications.values()) {
            if (auth instanceof OAuth) {
                ((OAuth) auth).setAccessToken(accessToken);
                return;
            }
        }
        throw new RuntimeException("No OAuth2 authentication configured!");
    }
11079
@SuppressWarnings("unused")
    public static void changeCredentials(String accountID, String token) {
        changeCredentials(accountID, token, null);
    }
14873
private void addClientId(String clientId) {
        //Sometimes the client Id will be null. For instance in the case QueueConnectionFactory, there is no default client Id specified in metatype.xml.
        if (clientId == null)
            return; //do nothing

        ConcurrentHashMap<String, Integer> clientIdTable = JmsFactoryFactoryImpl.getClientIdTable();

        if (clientIdTable.containsKey(clientId)) {
            clientIdTable.put(clientId, clientIdTable.get(clientId).intValue() + 1);
        } else {
            clientIdTable.put(clientId, 1);
        }

    }
1236625
public void domain_account_accountName_updateUsage_POST(String domain, String accountName) throws IOException {
		String qPath = "/email/domain/{domain}/account/{accountName}/updateUsage";
		StringBuilder sb = path(qPath, domain, accountName);
		exec(qPath, "POST", sb.toString(), null);
	}
1098068
public void setAuthToken(String authToken){
        if (authToken != null && authToken.length() != AUTH_TOKEN_LENGTH){            
            throw new IllegalArgumentException(authToken+" is not "+AUTH_TOKEN_LENGTH+" characters long.");
        }
        setParameter(AUTH_TOKEN, authToken);
    }
1136834
@UpdateHandler(name = "delete_token_account", file = "CouchDbOneTimeTokenAccount_delete.js")
    public void deleteTokenAccount(final CouchDbGoogleAuthenticatorAccount token) {
        db.callUpdateHandler(stdDesignDocumentId, "delete_token_account", token.getCid(), null);
    }