Developer Area

root/apps/iphone/superbook/trunk/ShareKit/SHKConfig.h @ 892

Revision 892, 6.2 kB (checked in by henri, 3 years ago)

Added ShareKit?

Line 
1
2
3
4
5
6// PLEASE SEE INSTALL/CONFIG INSTRUCTIONS:
7// http://getsharekit.com/install
8
9
10
11
12
13
14// App Description
15// These values are used by any service that shows 'shared from XYZ'
16
17#define SHKMyAppName                    @".telpages"
18#define SHKMyAppURL                             @"http://superbook.tel"
19
20
21
22/*
23 API Keys
24 --------
25 This is the longest step to getting set up, it involves filling in API keys for the supported services.
26 It should be pretty painless though and should hopefully take no more than a few minutes.
27 
28 Each key below as a link to a page where you can generate an api key.  Fill in the key for each service below.
29 
30 A note on services you don't need:
31 If, for example, your app only shares URLs then you probably won't need image services like Flickr.
32 In these cases it is safe to leave an API key blank.
33 
34 However, it is STRONGLY recommended that you do your best to support all services for the types of sharing you support.
35 The core principle behind ShareKit is to leave the service choices up to the user.  Thus, you should not remove any services,
36 leaving that decision up to the user.
37 */
38
39
40
41// Delicious - https://developer.apps.yahoo.com/projects
42#define SHKDeliciousConsumerKey         @""
43#define SHKDeliciousSecretKey           @""
44
45// Facebook - http://www.facebook.com/developers
46// If SHKFacebookUseSessionProxy is enabled then SHKFacebookSecret is ignored and should be left blank
47
48#define SHKFacebookUseSessionProxy  NO
49#define SHKFacebookKey                          @""
50#define SHKFacebookSecret                       @""
51#define SHKFacebookSessionProxyURL  @""
52
53// Read It Later - http://readitlaterlist.com/api/?shk
54#define SHKReadItLaterKey                       @""
55
56// Twitter - http://dev.twitter.com/apps/new
57/*
58 Important Twitter settings to get right:
59 
60 Differences between OAuth and xAuth
61 --
62 There are two types of authentication provided for Twitter, OAuth and xAuth.  OAuth is the default and will
63 present a web view to log the user in.  xAuth presents a native entry form but requires Twitter to add xAuth to your app (you have to request it from them).
64 If your app has been approved for xAuth, set SHKTwitterUseXAuth to 1.
65 
66 Callback URL (important to get right for OAuth users)
67 --
68 1. Open your application settings at http://dev.twitter.com/apps/
69 2. 'Application Type' should be set to BROWSER (not client)
70 3. 'Callback URL' should match whatever you enter in SHKTwitterCallbackUrl.  The callback url doesn't have to be an actual existing url.  The user will never get to it because ShareKit intercepts it before the user is redirected.  It just needs to match.
71 */
72#define SHKTwitterConsumerKey           @"1TBbNewsuXHCpEA2Euah8w"
73#define SHKTwitterSecret                        @"kkKPsqkOogu4SyVcafgugCGXyOXsSymqDcbX7co90"
74#define SHKTwitterCallbackUrl           @"http://superbook.tel/twittercallback" // You need to set this if using OAuth, see note above (xAuth users can skip it)
75#define SHKTwitterUseXAuth                      0 // To use xAuth, set to 1
76#define SHKTwitterUsername                      @"" // Enter your app's twitter account if you'd like to ask the user to follow it when logging in. (Only for xAuth)
77
78// Bit.ly (for shortening URLs on Twitter) - http://bit.ly/account/register - after signup: http://bit.ly/a/your_api_key
79#define SHKBitLyLogin                           @""
80#define SHKBitLyKey                                     @""
81
82// ShareMenu Ordering
83#define SHKShareMenuAlphabeticalOrder 1 // Setting this to 1 will show list in Alphabetical Order, setting to 0 will follow the order in SHKShares.plist
84
85// Append 'Shared With 'Signature to Email (and related forms)
86#define SHKSharedWithSignature          1
87
88
89
90/*
91 UI Configuration : Basic
92 ------
93 These provide controls for basic UI settings.  For more advanced configuration see below.
94 */
95
96// Toolbars
97#define SHKBarStyle                                     @"UIBarStyleDefault" // See: http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIKitDataTypesReference/Reference/reference.html#//apple_ref/c/econst/UIBarStyleDefault
98#define SHKBarTintColorRed                      -1 // Value between 0-255, set all to -1 for default
99#define SHKBarTintColorGreen            -1 // Value between 0-255, set all to -1 for default
100#define SHKBarTintColorBlue                     -1 // Value between 0-255, set all to -1 for default
101
102// Forms
103#define SHKFormFontColorRed                     -1 // Value between 0-255, set all to -1 for default
104#define SHKFormFontColorGreen           -1 // Value between 0-255, set all to -1 for default
105#define SHKFormFontColorBlue            -1 // Value between 0-255, set all to -1 for default
106
107#define SHKFormBgColorRed                       -1 // Value between 0-255, set all to -1 for default
108#define SHKFormBgColorGreen                     -1 // Value between 0-255, set all to -1 for default
109#define SHKFormBgColorBlue                      -1 // Value between 0-255, set all to -1 for default
110
111// iPad views
112#define SHKModalPresentationStyle       @"UIModalPresentationFormSheet" // See: http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/modalPresentationStyle
113#define SHKModalTransitionStyle         @"UIModalTransitionStyleCoverVertical" // See: http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/modalTransitionStyle
114
115// ShareMenu Ordering
116#define SHKShareMenuAlphabeticalOrder 1 // Setting this to 1 will show list in Alphabetical Order, setting to 0 will follow the order in SHKShares.plist
117
118// Append 'Shared With 'Signature to Email (and related forms)
119#define SHKSharedWithSignature          0
120
121/*
122 UI Configuration : Advanced
123 ------
124 If you'd like to do more advanced customization of the ShareKit UI, like background images and more,
125 check out http://getsharekit.com/customize
126 */
127
128
129
130/*
131 Debugging
132 ------
133 To show debug output in the console:
134 1. uncomment section A below
135 2. comment out section B below
136 
137 To hide debug output in the console:
138 1. uncomment section B below
139 2. comment out section A below
140 */
141
142// A : show debug output
143//#define SHKDebugShowLogs                      1
144//#define SHKLog( s, ... ) NSLog( @"<%p %@:(%d)> %@", self, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )
145
146// B : hide debug output
147#define SHKDebugShowLogs                        0
148#define SHKLog( s, ... )
149
150
151
152/*
153 Advanced Configuration
154 ------
155 These settings can be left as is.  This only need to be changed for uber custom installs.
156 */
157
158#define SHK_MAX_FAV_COUNT                       3
159#define SHK_FAVS_PREFIX_KEY                     @"SHK_FAVS_"
160#define SHK_AUTH_PREFIX                         @"SHK_AUTH_"
Note: See TracBrowser for help on using the browser.
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us