{"id":19017070,"url":"https://github.com/narekhovhannisyan/mailtrap-client","last_synced_at":"2025-08-07T16:14:50.370Z","repository":{"id":178682471,"uuid":"662104141","full_name":"narekhovhannisyan/mailtrap-client","owner":"narekhovhannisyan","description":"Challenge: Client for Mailtrap testing API.","archived":false,"fork":false,"pushed_at":"2023-12-18T21:31:59.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-20T23:45:03.612Z","etag":null,"topics":["client","mailtrap","mailtrap-io","sdk"],"latest_commit_sha":null,"homepage":"https://mailtrap.io/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/narekhovhannisyan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-07-04T11:10:58.000Z","updated_at":"2023-08-02T12:42:40.000Z","dependencies_parsed_at":"2023-12-19T01:02:32.629Z","dependency_job_id":null,"html_url":"https://github.com/narekhovhannisyan/mailtrap-client","commit_stats":null,"previous_names":["narekhovhannisyan/mailtrap-client"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/narekhovhannisyan/mailtrap-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narekhovhannisyan%2Fmailtrap-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narekhovhannisyan%2Fmailtrap-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narekhovhannisyan%2Fmailtrap-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narekhovhannisyan%2Fmailtrap-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/narekhovhannisyan","download_url":"https://codeload.github.com/narekhovhannisyan/mailtrap-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narekhovhannisyan%2Fmailtrap-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269286644,"owners_count":24391490,"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","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["client","mailtrap","mailtrap-io","sdk"],"created_at":"2024-11-08T19:45:38.903Z","updated_at":"2025-08-07T16:14:50.296Z","avatar_url":"https://github.com/narekhovhannisyan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mailtrap-sdk\n\nSDK client for Mailtrap. Here is link to API documentation [Mailtrap](https://api-docs.mailtrap.io/docs/mailtrap-api-docs/5tjdeg9545058-mailtrap-api)\n\n## Usage example:\n\n### Install\n\n```\nnpm i mailtrap-sdk\n```\n\n### Code\n\n```ts\nimport { MailtrapSDK } from 'mailtrap-sdk'\n\nconst accessToken = '\u003cYOUR_TOKEN_HERE\u003e'\nconst testInboxId = 0\n\nconst client = new MailtrapSDK({\n  accessToken,\n  testInboxId\n})\n\nconst test = async () =\u003e {\n  try {\n    await client.send({\n      sender: {\n        email: 'sender.mock@email.com',\n        name: 'sender'\n      },\n      recipient: {\n        email: 'recipient.mock@email.com',\n        name: 'recipient'\n      },\n      subject: 'mock-subject',\n      text: 'Mock text'\n    })\n  } catch (error) {\n    console.error(error)\n  }\n}\ntest()\n\n```\n\n # Table of Contents\n\n* [Contributing](doc/CONTRIBUTING.md)\n* [Install](doc/INSTALL.md)\n* [Test](doc/TEST.md)\n  * [Test Scripts](doc/TEST.md#test-scripts)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarekhovhannisyan%2Fmailtrap-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnarekhovhannisyan%2Fmailtrap-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarekhovhannisyan%2Fmailtrap-client/lists"}