<?php
 
/**
 
 * This is the configuration file
 
 *
 
 * Change anything, just make sure that:
 
 
 
 * 1) Values are enclosed in double quotes
 
 * 2) No single quotes in the configuration
 
 * 3) Comments start with a semicolon (;)
 
 * 4) You can add config blocks [config_name] for readability purposes only
 
 * 5) If you are storing tokens in files, make sure that the file directory is writable
 
 
 
 *
 
 * @copyright  2011 Aziz Hussain
 
 * @version    1.0
 
 * @link       http://azizsaleh.com
 
 * @email      [email protected]
 
 */ 
 
 
if (!defined('BASE_DIR')) {
 
    die('Invalid Acces');
 
}
 
 
$api_configs = '
 
 
 
 
[api_configs]
 
; This is your Netflix Key
 
consumer_key     = ""
 
 
; This is your Netflix Shared Secret
 
shared_key        = ""
 
 
; Your application name
 
app_name        = ""
 
 
; Token callback (page which requests final tokens)
 
app_callback    = "http://www.azizsaleh.com/work/Netflix-API/token_response.php"
 
 
; Redirect page after tokens are gotten
 
app_redirect    = "http://www.azizsaleh.com/work/Netflix-API/example.php?demo=3"
 
 
; If using Protected calls, you will need to store the user ID and authorization
 
; token somewhere (unless you want the user to login everytime)
 
 
; Storage object (located in storage directory)
 
; For DB, use "storageObject.mysql.php"
 
token_storage     = "storageObject.file.php"
 
 
; Token directory (location from application bath)
 
; Tokens stored in file in .session_id as TOKEN, TOKEN_SECRET, STEP_ID
 
token_dir         = token_directory
 
 
[db_info]
 
;DB Username
 
db_hostname        = localhost
 
db_username        = root
 
db_password        = ""
 
db_database        = test
 
 
; Table & Fields info
 
db_table        = user_tokens
 
db_user_id        = session_id
 
db_token        = token_string
 
db_token_secret    = token_secret_string
 
db_step_id        = step_id
 
db_netflix_id    = netflix_id
 
 
; Any other configurations you add, will be accessible from the config object
 
[other_info]
 
 
';
 
 |