{"id":19177728,"url":"https://github.com/jessety/simple-hmac-auth-objc","last_synced_at":"2025-02-23T01:19:12.439Z","repository":{"id":77098932,"uuid":"158990803","full_name":"jessety/simple-hmac-auth-objc","owner":"jessety","description":"Objective-C iOS framework for interfacing with APIs that implement hmac signatures","archived":false,"fork":false,"pushed_at":"2019-03-06T17:35:47.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T02:48:39.746Z","etag":null,"topics":["api-security","hmac-authentication","ios","objective-c","request-signatures","request-signing","simple-hmac-auth"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jessety.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-25T02:26:07.000Z","updated_at":"2020-09-08T22:21:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"c11a26ec-b34b-4cec-b434-802990bd855b","html_url":"https://github.com/jessety/simple-hmac-auth-objc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessety%2Fsimple-hmac-auth-objc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessety%2Fsimple-hmac-auth-objc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessety%2Fsimple-hmac-auth-objc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessety%2Fsimple-hmac-auth-objc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jessety","download_url":"https://codeload.github.com/jessety/simple-hmac-auth-objc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240254564,"owners_count":19772438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-security","hmac-authentication","ios","objective-c","request-signatures","request-signing","simple-hmac-auth"],"created_at":"2024-11-09T10:34:54.459Z","updated_at":"2025-02-23T01:19:12.409Z","avatar_url":"https://github.com/jessety.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-hmac-auth-ios\niOS framework for interfacing with APIs that implement HMAC signatures. Designed for use with a JSON API that implements [simple-hmac-auth](https://github.com/jessety/simple-hmac-auth).\n\n## Usage\n\n### Swift\n\n```swift\nlet client = SimpleAuthClient(apiKey: \"API_KEY\", secret: \"SECRET\")\n\nclient.settings.setValue(\"localhost\", forKey: \"host\")\nclient.settings.setValue(8000, forKey: \"port\");\nclient.settings.setValue(false, forKey: \"ssl\");\nclient.settings.setValue(true, forKey: \"verbose\")\n        \nclient.call(\"GET\", path: \"/items/\", query: nil, body: nil) { (response, error) in\n\n  guard error == nil else {\n    print(\"Error:\", error!)\n    return\n  }\n  \n  print(\"Request succeeded\")\n  print(\"\\(response!)\")\n}\n```\n\n### Objective-C\n\n```obj-c\n#include \u003cSimpleHMACAuth/SimpleAuthClient.h\u003e\n\nSimpleAuthClient *client = [[SimpleAuthClient alloc] initWithAPIKey:@\"API_KEY\" secret:@\"SECRET\"];\n    \n[client.settings setValue:@\"localhost\" forKey: @\"host\"];\n[client.settings setValue:@8000 forKey: @\"port\"];\n[client.settings setValue:@false forKey: @\"ssl\"];\n[client.settings setValue:@true forKey: @\"verbose\"];\n\n[client call:@\"GET\" path:@\"/items/\" query:nil body:nil completion:^(id  _Nullable response, NSError * _Nullable error) {\n\n  if (error) {\n    NSLog(@\"Error:\", error);\n    return;\n  }\n  \n  NSLog(@\"Request Succeeded\");\n  NSLog(@\"%@\", response);\n}];\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjessety%2Fsimple-hmac-auth-objc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjessety%2Fsimple-hmac-auth-objc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjessety%2Fsimple-hmac-auth-objc/lists"}