{"id":20757221,"url":"https://github.com/vapor-community/gatewayapikit","last_synced_at":"2025-07-03T15:36:44.134Z","repository":{"id":104073211,"uuid":"219327310","full_name":"vapor-community/GatewayAPIKit","owner":"vapor-community","description":"A Swift package for sending SMS using GatewayAPI","archived":false,"fork":false,"pushed_at":"2020-03-19T16:53:20.000Z","size":17,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-17T09:46:57.051Z","etag":null,"topics":["gateway-api","server-side-swift","sms-api","swiftnio"],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/vapor-community.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":"2019-11-03T16:05:50.000Z","updated_at":"2023-10-17T18:07:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"be5a7ea3-107b-4681-ba20-880d0321e880","html_url":"https://github.com/vapor-community/GatewayAPIKit","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapor-community%2FGatewayAPIKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapor-community%2FGatewayAPIKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapor-community%2FGatewayAPIKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapor-community%2FGatewayAPIKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vapor-community","download_url":"https://codeload.github.com/vapor-community/GatewayAPIKit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234465649,"owners_count":18837989,"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":["gateway-api","server-side-swift","sms-api","swiftnio"],"created_at":"2024-11-17T09:40:58.711Z","updated_at":"2025-01-18T04:42:58.573Z","avatar_url":"https://github.com/vapor-community.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GatewayAPIKit\n\n### GatewayAPIKit is a Swift package used to send text messages (SMS) with [GatewayAPI](https://gatewayapi.com/) for Server Side Swift.\n\n## Installation\nTo use GatewayAPI, please add the following to your `Package.swift` file.\n\n~~~~swift\ndependencies: [\n    ...\n    .package(url: \"https://github.com/vapor-community/GatewayAPIKit.git\", from: \"1.0.0\")\n],\n...\ntargets: [\n    .target(\n        name: ...\n        dependencies: [\n            ...\n            .product(name: \"GatewayAPIKit\", package: \"GatewayAPIKit\")\n        ]\n    )\n]\n~~~~\n\n## How to use\nAll you need to send a text message is to initialize a `GatewayAPIClient`:\n\n~~~~swift\nimport GatewayAPIKit\n\nlet eventLoop: EventLoop = ...\nlet httpClient = HTTPClient(...)\nlet client = GatewayAPIClient(eventLoop: eventLoop, httpClient: httpClient, apiKey: \"\")\n~~~~\n\nPlease store your API key in storage such as environment variables and not directly in code.\n\nYou can now send a simple text message:\n~~~~swift\nclient.send(\"My text message\", to: [\"4510203040\"], from: \"Mads\")\n~~~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvapor-community%2Fgatewayapikit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvapor-community%2Fgatewayapikit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvapor-community%2Fgatewayapikit/lists"}