Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add macro for checking OAuth keys.

  • Loading branch information...
commit 315c996e6e6fac57514d4faa73329060edf714dc 1 parent 28be81e
@lenards lenards authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  libechonest/src/ENAPI_utils.h
View
2  libechonest/src/ENAPI_utils.h
@@ -11,4 +11,6 @@
#define CHECK_API_KEY if (nil == [ENAPI apiKey]) { @throw [NSException exceptionWithName:@"APIKeyNotSetException" reason:@"Set the API key before calling this method" userInfo:nil]; }
+#define CHECK_OAUTH_KEYS if (nil == [ENAPI consumerKey] && nil == [ENAPI sharedSecret]) { @throw [NSException exceptionWithName:@"OAuthKeysNotSetException" reason:@"Set the consumer key & shared secret before calling this method" userInfo:nil]; }
+
static NSString __attribute__((unused)) * const ECHONEST_API_URL = @"http://developer.echonest.com/api/v4/";
Please sign in to comment.
Something went wrong with that request. Please try again.