forked from ak2consulting/ios_example
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a simple README to help developers get started with the example.
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Singly API Example | ||
|
||
This app is a simple example of how you might integrate with the | ||
Singly Developer API from an iOS application using the Google OAuth2 | ||
library. As such, it is a very simple app and not intended to show | ||
best practices of application structure or design. | ||
|
||
## How to Use | ||
|
||
You will need an OAuth Client ID and Client Secret from Singly in order | ||
to use the API. | ||
|
||
Once you have your Client ID and Client Secret, open the file | ||
SYViewController.m and replace the values defined at the top of the file | ||
with your Client ID and Client Secret: | ||
|
||
static NSString *const kMyClientID = @"[your client id]"; | ||
static NSString *const kMyClientSecret = @"[your client secret]"; | ||
|
||
## Persistence | ||
|
||
There is presently a crashing issue when using the keychain support in | ||
the Google OAuth2 library. I'm not quite sure why this is happening, so | ||
keychain persistence is currently disabled in this example. | ||
|
||
This means that your OAuth token will not persist between app launches. | ||
You will need to re-auth each time you launch the example in order for | ||
any of the API Endpoints to succeed. | ||
|
||
I am still looking into why this is happening. Feel free to poke and prod | ||
and send a pull request if you figure out why. |
Binary file modified
BIN
-251 Bytes
(99%)
...codeproj/project.xcworkspace/xcuserdata/justin.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.