Skip to content

Instantly share code, notes, and snippets.

@wjessop
Created September 11, 2010 08:45
Show Gist options
  • Save wjessop/575002 to your computer and use it in GitHub Desktop.
Save wjessop/575002 to your computer and use it in GitHub Desktop.
NSDictionary *api_token_header = [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"X-API-Token", @"MY API KEY", nil] forKeys:[NSArray arrayWithObjects:@"name", @"value", nil]];
[Connection setRequestHeaders:[NSArray arrayWithObject:api_token_header]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment