{"id":34897097,"url":"https://github.com/torabi-srh/messageway","last_synced_at":"2026-04-27T09:01:30.576Z","repository":{"id":330133690,"uuid":"1121731964","full_name":"Torabi-srh/MessageWay","owner":"Torabi-srh","description":"برای استفاده از سامانه هوشمند راه‌پیام ","archived":false,"fork":false,"pushed_at":"2025-12-23T14:40:01.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-25T01:46:02.835Z","etag":null,"topics":["aspnetcore","dotnet","gap","ivr","messageway","messaging","msgway","notification","otp","sms","verification"],"latest_commit_sha":null,"homepage":"https://msgway.com/","language":"C#","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/Torabi-srh.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-23T13:12:16.000Z","updated_at":"2025-12-23T14:42:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Torabi-srh/MessageWay","commit_stats":null,"previous_names":["torabi-srh/messageway"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Torabi-srh/MessageWay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torabi-srh%2FMessageWay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torabi-srh%2FMessageWay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torabi-srh%2FMessageWay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torabi-srh%2FMessageWay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Torabi-srh","download_url":"https://codeload.github.com/Torabi-srh/MessageWay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torabi-srh%2FMessageWay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32329466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["aspnetcore","dotnet","gap","ivr","messageway","messaging","msgway","notification","otp","sms","verification"],"created_at":"2025-12-26T07:37:03.532Z","updated_at":"2026-04-27T09:01:30.557Z","avatar_url":"https://github.com/Torabi-srh.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# راه پیام (MessageWay)\n\n[![Build](https://github.com/Torabi-srh/MessageWay/actions/workflows/ci.yml/badge.svg)](https://github.com/Torabi-srh/MessageWay/actions/workflows/ci.yml)\n[![NuGet](https://img.shields.io/nuget/v/MessageWay.svg)](https://www.nuget.org/packages/MessageWay)\n\n**MessageWay** is a comprehensive messaging solution for .NET, supporting **SMS**, **IVR**, and **Gap** messenger with built-in **OTP** verification.\n\n**Keywords**: messaging, sms, otp, ivr, gap, notification, verification, dotnet, aspnetcore, msgway\n\n## مقدمه\n\nبرای اطلاعات بیشتر می‌توانید به وب‌سایت رسمی و گیت‌هاب ما مراجعه کنید:\n- **وب‌سایت:** [https://msgway.com/](https://msgway.com/)\n- **گیت‌هاب:** [https://github.com/MessageWay](https://github.com/MessageWay)\n\n## شروع کار\n\n### نصب\n\nبسته را از طریق NuGet نصب کنید:\n\n```bash\ndotnet add package MessageWay\n```\n\n### نحوه استفاده\n\n#### تزریق وابستگی (پیشنهادی)\n\nسرویس‌های MsgWay را در فایل `Startup.cs` یا `Program.cs` ثبت کنید:\n\n```csharp\nusing MessageWay;\n\nbuilder.Services.AddMsgWay(options =\u003e\n{\n    options.ApiKey = \"YOUR_API_KEY\";\n    options.Language = \"fa\"; // اختیاری، پیش‌فرض \"fa\" است\n});\n```\n\nرابط `IMsgWayClient` را به سرویس‌های خود اضافه کنید:\n\n```csharp\npublic class MyService\n{\n    private readonly IMsgWayClient _client;\n\n    public MyService(IMsgWayClient client)\n    {\n        _client = client;\n    }\n\n    public async Task SendOtpAsync(string mobile)\n    {\n        var request = new SendRequest\n        {\n            Mobile = mobile,\n            Method = SendMethod.Sms,\n            TemplateId = 3 // شناسه الگوی OTP شما\n        };\n\n        var response = await _client.SendAsync(request);\n        \n        if (response.Status == \"success\")\n        {\n            Console.WriteLine($\"پیام ارسال شد! شناسه مرجع: {response.ReferenceId}\");\n        }\n    }\n}\n```\n\n#### دستی\n\nاگر از تزریق وابستگی (DI) استفاده نمی‌کنید، می‌توانید کلاینت را مستقیماً استفاده کنید:\n\n```csharp\nvar httpClient = new HttpClient();\nvar options = new MsgWayOptions { ApiKey = \"YOUR_API_KEY\" };\nvar client = new MsgWayClient(httpClient, options);\n```\n\n### ویژگی‌ها\n\n- **ارسال پیام (Send Messages)**: پشتیبانی از پیامک (SMS)، تماس صوتی (IVR) و پیام‌رسان گپ.\n- **بررسی وضعیت (Check Status)**: استعلام وضعیت پیام‌های ارسال شده.\n- **تایید کد یکبار مصرف (Verify OTP)**: پشتیبانی داخلی برای تایید کدهای OTP.\n- **دریافت موجودی (Get Balance)**: بررسی موجودی حساب.\n- **دریافت الگوها (Get Templates)**: دریافت جزئیات الگوها.\n\n## ساختار\n\n- **MessageWay.Core**: انتزاعات اصلی، رابط‌ها و مدل‌ها.\n- **MessageWay**: پیاده‌سازی اصلی و نقطه ورود.\n- **MessageWay.Tests**: تست‌های واحد (Unit Tests).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorabi-srh%2Fmessageway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorabi-srh%2Fmessageway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorabi-srh%2Fmessageway/lists"}