1919 */
2020public class FreeClimbClient {
2121 private String credAccountId ;
22- private String credAuthToken ;
22+ private String credApiKey ;
2323 private String accountId ;
2424
2525 public AccountRequester accounts ;
@@ -41,8 +41,8 @@ public class FreeClimbClient {
4141 *
4242 * @param credAccountId The Account ID to use in your credentials for the
4343 * FreeClimb API.
44- * @param credAuthToken The Auth Token to use in your credentials for the
45- * FreeClimb API. This should be the matching Auth Token to
44+ * @param credApiKey The API key to use in your credentials for the
45+ * FreeClimb API. This should be the matching API key to
4646 * the credAccountId parameter.
4747 * @param accountId The Account ID of the account you want to act as. This
4848 * should either be the same Account ID ass credAccountId
@@ -52,42 +52,42 @@ public class FreeClimbClient {
5252 * @throws FreeClimbException when any of the requesters throws a
5353 * FreeClimbException.
5454 */
55- public FreeClimbClient (String credAccountId , String credAuthToken , String accountId ) throws FreeClimbException {
55+ public FreeClimbClient (String credAccountId , String credApiKey , String accountId ) throws FreeClimbException {
5656 this .credAccountId = credAccountId ;
57- this .credAuthToken = credAuthToken ;
57+ this .credApiKey = credApiKey ;
5858 this .accountId = accountId ;
5959
60- this .accounts = new AccountRequester (credAccountId , credAuthToken , accountId );
61- this .recordings = new RecordingsRequester (credAccountId , credAuthToken , accountId );
62- this .calls = new CallsRequester (credAccountId , credAuthToken , accountId );
63- this .conferences = new ConferencesRequester (credAccountId , credAuthToken , accountId );
64- this .logs = new LogRequester (credAccountId , credAuthToken , accountId );
65- this .available = new AvailablePhoneNumberRequester (credAccountId , credAuthToken , accountId );
66- this .calling = new CallingNumberRequester (credAccountId , credAuthToken , accountId );
67- this .incoming = new IncomingPhoneNumberRequester (credAccountId , credAuthToken , accountId );
68- this .queues = new QueuesRequester (credAccountId , credAuthToken , accountId );
69- this .applications = new ApplicationsRequester (credAccountId , credAuthToken , accountId );
70- this .messages = new MessagesRequester (credAccountId , credAuthToken , accountId );
60+ this .accounts = new AccountRequester (credAccountId , credApiKey , accountId );
61+ this .recordings = new RecordingsRequester (credAccountId , credApiKey , accountId );
62+ this .calls = new CallsRequester (credAccountId , credApiKey , accountId );
63+ this .conferences = new ConferencesRequester (credAccountId , credApiKey , accountId );
64+ this .logs = new LogRequester (credAccountId , credApiKey , accountId );
65+ this .available = new AvailablePhoneNumberRequester (credAccountId , credApiKey , accountId );
66+ this .calling = new CallingNumberRequester (credAccountId , credApiKey , accountId );
67+ this .incoming = new IncomingPhoneNumberRequester (credAccountId , credApiKey , accountId );
68+ this .queues = new QueuesRequester (credAccountId , credApiKey , accountId );
69+ this .applications = new ApplicationsRequester (credAccountId , credApiKey , accountId );
70+ this .messages = new MessagesRequester (credAccountId , credApiKey , accountId );
7171 }
7272
7373 /**
7474 * This constructor allows one to create a FreeClimbClient that authenticates
7575 * with one set of credentials and acts as that account.
7676 *
7777 * This Constructor is a shortcut for calling
78- * {@code FreeClimbClient(credAccountId, credAuthToken , credAccountId)}.
78+ * {@code FreeClimbClient(credAccountId, credApiKey , credAccountId)}.
7979 *
8080 * @param credAccountId The Account ID to use in your credentials for the
8181 * FreeClimb API.
82- * @param credAuthToken The Auth Token to use in your credentials for the
83- * FreeClimb API. This should be the matching Auth Token to
82+ * @param credApiKey The API key to use in your credentials for the
83+ * FreeClimb API. This should be the matching API key to
8484 * the credAccountId parameter.
8585 * @see #FreeClimbClient(String, String, String)
8686 * @throws FreeClimbException when any of the requesters throws a
8787 * FreeClimbException.
8888 */
89- public FreeClimbClient (String credAccountId , String credAuthToken ) throws FreeClimbException {
90- this (credAccountId , credAuthToken , credAccountId );
89+ public FreeClimbClient (String credAccountId , String credApiKey ) throws FreeClimbException {
90+ this (credAccountId , credApiKey , credAccountId );
9191 }
9292
9393 /**
@@ -98,10 +98,10 @@ public String getCredAccountId() {
9898 }
9999
100100 /**
101- * @return the Auth Token being used to authenticate with the API
101+ * @return the API key being used to authenticate with the API
102102 */
103- public String getCredAuthToken () {
104- return credAuthToken ;
103+ public String getCredApiKey () {
104+ return credApiKey ;
105105 }
106106
107107 /**
0 commit comments