Coder Social home page Coder Social logo

smsglobal-dotnet's People

Contributors

chrismerat avatar parkashkmanwani avatar parkashsmsglobal avatar sahilsaggar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

smsglobal-dotnet's Issues

Seemingly unnecessary network request to api.nuget.org

Based on the v1.1.0 code, it looks like Rest.Request is making a network call to api.nuget.org prior to every call to the SMSGlobal REST service. I believe this is unnecessary and wasteful.

The purpose seems to be obtaining the latest version of the package to put in the User-Agent header. It seems to me like it would be more valuable to include the currently running package version.

Suggestions to fix:

  1. If possible, eliminate the call to api.nuget.org, and use the current assembly's version. (For example, using typeof(Client).Assembly.GetName().Version.)
  2. If the Nuget call is necessary for some reason, call it once and cache the result in a singleton, or similar.
  3. If the Nuget call is necessary as part of every call, as it's coded now, add comments to explain why.

Also please note that the HttpClient instantiated on line 375 (as of tag 1.1.0) is not properly disposed.

Is MMS supported?

Sending MMS message documented here is supported in this dotnet package or not? I see that MMS api request endpoint is https://api.smsglobal.com/mms/sendmms.php, but this package seems only calling https://api.smsglobal.com/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.