<commit_before># deviantART SDK
deviantART SDK is a library that makes it easier for developers to create and develop apps using the [deviantART API](https://www.deviantart.com/developers). It currently supports all public OAuth2 API methods on the deviantART API with simple authentication methods provided. Using this SDK should simplify deviantART integration for any developer who wishes to add it to their app.

## How To Get Started

* Download the SDK and try the included example iOS app or the example [Mac app](https://github.com/deviantART/Sta.sh-for-Mac). 
* Checkout and read the documentation of the code included for a deeper look at what is available to use.
* Questions? Post an issue!

### Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like the deviantART SDK in your projects.

#### Podfile

```ruby
platform :ios, '7.0'
pod "deviantART-SDK", "~> 1.0.1"
```

#### Setup
To setup, add this line and import DVNTAPI.h in your application delegate’s application:didFinishLaunchingWithOptions: method, to set your client ID and secret SDK-wide:

```objective-c
[DVNTAPIClient setClientID:@"__CHANGE_ME__" clientSecret:@"__CHANGE_ME__"];
```

Register your application [here](http://www.deviantart.com/developers/register) to get a client ID and secret. 

The SDK defaults to using a redirect URI of https://www.deviantart.com/oauth2/redirect, you can change this by calling setRedirectURI: on DVNTAPIClient directly after setting your client ID and secret.

#### Authenticating with deviantART
Authenticate with deviantART via the SDK by implementing the below method:

```objective-c
[DVNTAPIClient authenticateFromController:self scope:@"basic" completionHandler:^(NSError *error) {

    if(!error && [DVNTAPIClient isAuthenticated]) {
        // App is fully authenticated with no errors 
        // and ready to perform API calls
    } else {
    	NSLog(@"Error: %@", error);
    }
}];
```

This method will show a view controller or window, dependent on platform, that loads the OAuth2 forms as neccessary. The completionHandler will be called when login is completed in this controller/window.
<commit_msg>Fix the advised Podfile setup.<commit_after># deviantART SDK
deviantART SDK is a library that makes it easier for developers to create and develop apps using the [deviantART API](https://www.deviantart.com/developers). It currently supports all public OAuth2 API methods on the deviantART API with simple authentication methods provided. Using this SDK should simplify deviantART integration for any developer who wishes to add it to their app.

## How To Get Started

* Download the SDK and try the included example iOS app or the example [Mac app](https://github.com/deviantART/Sta.sh-for-Mac). 
* Checkout and read the documentation of the code included for a deeper look at what is available to use.
* Questions? Post an issue!

### Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like the deviantART SDK in your projects.

#### Podfile

```ruby
platform :ios, '7.0'
pod "deviantART-SDK", "~> 1.0"
```

#### Setup
To setup, add this line and import DVNTAPI.h in your application delegate’s application:didFinishLaunchingWithOptions: method, to set your client ID and secret SDK-wide:

```objective-c
[DVNTAPIClient setClientID:@"__CHANGE_ME__" clientSecret:@"__CHANGE_ME__"];
```

Register your application [here](http://www.deviantart.com/developers/register) to get a client ID and secret. 

The SDK defaults to using a redirect URI of https://www.deviantart.com/oauth2/redirect, you can change this by calling setRedirectURI: on DVNTAPIClient directly after setting your client ID and secret.

#### Authenticating with deviantART
Authenticate with deviantART via the SDK by implementing the below method:

```objective-c
[DVNTAPIClient authenticateFromController:self scope:@"basic" completionHandler:^(NSError *error) {

    if(!error && [DVNTAPIClient isAuthenticated]) {
        // App is fully authenticated with no errors 
        // and ready to perform API calls
    } else {
    	NSLog(@"Error: %@", error);
    }
}];
```

This method will show a view controller or window, dependent on platform, that loads the OAuth2 forms as neccessary. The completionHandler will be called when login is completed in this controller/window.

{'fraction_non_alphanumeric': 0.08037508372404555, 'fraction_numerical': 0.003795490064746595, 'mean_word_length': 4.678073510773131, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2288035', 'n_tokens_mistral': 1278, 'n_tokens_neox': 1211, 'n_words': 544}