<commit_before>About:
======

Zend Framework 1 OAuth 2 Library

version 1.1.0

Examples:
=========

Zend Framework 1 OAuth 2 examples.

Jamendo API OAuth 2
-------------------

1. Add the latest Zend Framework and the Chrisweb library to the library directory.

2. Setup an Apache vhost for the example:

apache vhost.conf

```
<VirtualHost *:80>

    ServerName www.jamendoapioauth2.dev
    DocumentRoot /path/to/examples/JamendoApiOAuth2/public
    ErrorLog "logs/jamendoapioauth2-error.log"
    CustomLog "logs/jamendoapioauth2-access.log" combined
    SetEnv APPLICATION_ENV "development"
 
    <Directory /path/to/examples/JamendoApiOAuth2/public>
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
	
</VirtualHost>
```

3. Update your hosts file:

127.0.0.1 www.jamendoapioauth2.dev

4. Create a Jamendi API account, then create a configuration file and add the values:

```
; application/configs/jamendo_api.ini

; to get a jamendo api account visit: https://devportal.jamendo.com/

; jamendo api configuration
dialogEndpoint = https://api.jamendo.com/v3.0
oauthEndpoint = https://api.jamendo.com/v3.0
clientId = 000000000
clientSecret = 00000000000000000000000000000000
callbackUrl = http://www.mywebsite.dev/jamendocallback
oauthDialogUri = /oauth/authorize
accessTokenUri = /oauth/grant
stateSecret = a_secret_phrase
grantType = authorization_code
```

Facebook Open Graph API OAuth 2
-------------------------------

1. Add the latest Zend Framework and the Chrisweb library to the library directory.

2. Setup an Apache vhost for the example:

apache vhost.conf

```
<VirtualHost *:80>

    ServerName www.facebookopengraphoauth2.dev
    DocumentRoot /path/to/examples/FacebookOpenGraphOAuth2/public
    ErrorLog "logs/facebookopengraphoauth2-error.log"
    CustomLog "logs/facebookopengraphoauth2-access.log" combined
    SetEnv APPLICATION_ENV "development"
 
    <Directory /path/to/examples/FacebookOpenGraphOAuth2/public>
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
	
</VirtualHost>
```

3. Update your hosts file:

127.0.0.1 www.facebookopengraphoauth2.dev

4. Create a Facebook API account, then create a configuration file and add the values:

```
; application/configs/facebook_api.ini

; facebook api configuration
dialogEndpoint = https://www.facebook.com
oauthEndpoint = https://graph.facebook.com
clientId = 0000000000000
clientSecret = 000000000000000000000000000000
callbackUrl = http://www.facebookopengraphoauth2.dev/facebookcallback
oauthDialogUri = /dialog/oauth
accessTokenUri = /oauth/access_token
stateSecret = a_secret_phrase
```<commit_msg>readme update<commit_after>About:
======

Zend Framework 1 OAuth 2 Library

version 1.1.0

Examples:
=========

Zend Framework 1 OAuth 2 examples.

Jamendo API OAuth 2
-------------------

1) Add the latest Zend Framework and the Chrisweb library to the library directory.

2) Setup an Apache vhost for the example:

apache vhost.conf

```
<VirtualHost *:80>

    ServerName www.jamendoapioauth2.dev
    DocumentRoot /path/to/examples/JamendoApiOAuth2/public
    ErrorLog "logs/jamendoapioauth2-error.log"
    CustomLog "logs/jamendoapioauth2-access.log" combined
    SetEnv APPLICATION_ENV "development"
 
    <Directory /path/to/examples/JamendoApiOAuth2/public>
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
	
</VirtualHost>
```

3) Update your hosts file:

127.0.0.1 www.jamendoapioauth2.dev

4) Create a Jamendi API account, then create a configuration file and add the values:

```
; application/configs/jamendo_api.ini

; to get a jamendo api account visit: https://devportal.jamendo.com/

; jamendo api configuration
dialogEndpoint = https://api.jamendo.com/v3.0
oauthEndpoint = https://api.jamendo.com/v3.0
clientId = 000000000
clientSecret = 00000000000000000000000000000000
callbackUrl = http://www.mywebsite.dev/jamendocallback
oauthDialogUri = /oauth/authorize
accessTokenUri = /oauth/grant
stateSecret = a_secret_phrase
grantType = authorization_code
```

Facebook Open Graph API OAuth 2
-------------------------------

1) Add the latest Zend Framework and the Chrisweb library to the library directory.

2) Setup an Apache vhost for the example:

apache vhost.conf

```
<VirtualHost *:80>

    ServerName www.facebookopengraphoauth2.dev
    DocumentRoot /path/to/examples/FacebookOpenGraphOAuth2/public
    ErrorLog "logs/facebookopengraphoauth2-error.log"
    CustomLog "logs/facebookopengraphoauth2-access.log" combined
    SetEnv APPLICATION_ENV "development"
 
    <Directory /path/to/examples/FacebookOpenGraphOAuth2/public>
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
	
</VirtualHost>
```

3) Update your hosts file:

127.0.0.1 www.facebookopengraphoauth2.dev

4) Create a Facebook API account, then create a configuration file and add the values:

```
; application/configs/facebook_api.ini

; facebook api configuration
dialogEndpoint = https://www.facebook.com
oauthEndpoint = https://graph.facebook.com
clientId = 0000000000000
clientSecret = 000000000000000000000000000000
callbackUrl = http://www.facebookopengraphoauth2.dev/facebookcallback
oauthDialogUri = /dialog/oauth
accessTokenUri = /oauth/access_token
stateSecret = a_secret_phrase
```
{'fraction_non_alphanumeric': 0.10333455478197141, 'fraction_numerical': 0.049102235251007695, 'mean_word_length': 3.763525305410122, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 10, 'lorem ipsum': 0, 'www.': 14, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 8, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3153113', 'n_tokens_mistral': 1911, 'n_tokens_neox': 1618, 'n_words': 445}