Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

payamak

payamak service use for send message

Installation

First, you need to create an account at payamak-panel.com

and after that, you can use this service for your app

You can download the rest documentation Here

Install-Package PayamakPanel.Core

Registration

builder.Services.AddPayamakService();

Usage

For Send Sms

private readonly IPayamakServices _payamakServices;

public Controller(IPayamakServices payamakServices)
{
 _payamakServices = payamakServices;
}


public async Task sendmessage()
{
   var result=  await _payamakServices.SendSms(new MessageDto{
            From = "your line number",
            To = "you phone number",
            Text = "کد فعال سازی حساب کاربری شما برای عملیات تغییر یا فراموشی رمزعبور 82234 است.",
            username = "username",
            password = "password"
            ,IsFlash = false
        });
}



  

Result APi

this class Use For Get Result Of Api

   public class ResultDto
  {
      public string Value { get; set; }

      public int RetStatus { get; set; }

      public string StrRetStatus { get; set; }

  }
  

Major Changes

1-All methods support CancellationToken

2-Add Retry policy behind the scene

3-Support asynchronous http call

4-Improve performance

About

Service use for Send Message

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages