Skip to content

Commit

Permalink
Changed API endpoint from carealot.singly.com to api.singly.com (clos…
Browse files Browse the repository at this point in the history
…es #1).
  • Loading branch information
jsmecham committed May 11, 2012
1 parent f5beb9f commit 3af58d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Singly API Example/SYViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
switch (selectedPath.row)
{
case 0: // View Profiles
endpoint = @"https://carealot.singly.com/profiles";
endpoint = @"https://api.singly.com/profiles";
break;
default:
break;
Expand Down Expand Up @@ -108,7 +108,7 @@ - (GTMOAuth2Authentication *)singlyAuth
{

// Set the token URL to the Singly token endpoint.
NSURL *tokenURL = [NSURL URLWithString:@"https://carealot.singly.com/oauth/access_token"];
NSURL *tokenURL = [NSURL URLWithString:@"https://api.singly.com/oauth/access_token"];

// Set a bogus redirect URI. It won't actually be used as the redirect will
// be intercepted by the OAuth library and handled in the app.
Expand Down Expand Up @@ -146,7 +146,7 @@ - (void)authorize:(NSString *)service

// Prepare the Authorization URL. We will pass in the name of the service
// that we wish to authorize with.
NSURL *authURL = [NSURL URLWithString:[NSString stringWithFormat:@"https://carealot.singly.com/oauth/authorize?service=%@", service]];
NSURL *authURL = [NSURL URLWithString:[NSString stringWithFormat:@"https://api.singly.com/oauth/authorize?service=%@", service]];

// Display the authentication view
GTMOAuth2ViewControllerTouch *viewController;
Expand All @@ -155,7 +155,7 @@ - (void)authorize:(NSString *)service
keychainItemName:kKeychainItemName
delegate:self
finishedSelector:@selector(viewController:finishedWithAuth:error:)];
[viewController setBrowserCookiesURL:[NSURL URLWithString:@"https://carealot.singly.com/"]];
[viewController setBrowserCookiesURL:[NSURL URLWithString:@"https://api.singly.com/"]];

// Now push our sign-in view
[[self navigationController] pushViewController:viewController animated:YES];
Expand Down

0 comments on commit 3af58d7

Please sign in to comment.