twilio / authy.net Goto Github PK
View Code? Open in Web Editor NEW.NET Library to access the Authy API
License: MIT License
.NET Library to access the Authy API
License: MIT License
Please add support for locale as indicated in the Authy API: https://www.twilio.com/docs/api/authy/authy-phone-verification-api#parameters
Hi Team,
Im senthil I have created the users with respective parameters with [Email,phone number,country Code] from your web site its created successfully and at the same it will appear in the list ref (fig 1,2) .
At the same i'm using the below code which is available in your code center[Project Name: authy.net-master] using c# language even I attached the same project. When I run the demo, i'm getting success status with “User Created Successfully” message after that im checking my account from your web site but the user not appear in the screen. Please let me know the reason and where I did the mistake . I raised the query from yesterday morning from your support menu which is provided by your website. Please rectify the issue urgently
const` string goodApiKey = "0cd08abec2e9b9641e40e9470a7fc336";
var client = new AuthyClient(goodApiKey, true);
var result = client.RegisterUser("[email protected]", "862-927-7514",91);
Assert.AreEqual(AuthyStatus.Success, result.Status);
//Method
public RegisterUserResult RegisterUser(string email, string cellPhoneNumber, int countryCode = 1)
{
var request = new System.Collections.Specialized.NameValueCollection()
{
{"user[email]", email},
{"user[cellphone]",cellPhoneNumber},
{"user[country_code]",countryCode.ToString()}
};
var url = string.Format("{0}/protected/json/users/new?api_key={1}", this.baseUrl, this.apiKey);
return this.Execute<RegisterUserResult>(client =>
{
var response = client.UploadValues(url, request);
var textResponse = Encoding.ASCII.GetString(response);
RegisterUserResult apiResponse = JsonConvert.DeserializeObject<RegisterUserResult>(textResponse);
apiResponse.RawResponse = textResponse;
apiResponse.Status = AuthyStatus.Success;
apiResponse.UserId = apiResponse.User["id"];
return apiResponse;
});
}
Guys, what do you think about adding Authy OneTouch support to authy.net? It would be great, right?
Would you mind having a look at https://gist.github.com/acamino/90d6638a1e03db2cd4e9. You'll find a proposal about a implementation that uses the infrastructure you already have for Execute
.
The proposed implementation tries to mimic the separation of concerns you already have on authy-ruby
.
This proposal introduces 3 classes:
OneTouchClient
which holds the logic to send an approval request to Authy OneTouch.SendApprovalRequestResult.cs
, this one represents the result from sending an approval request.OneTouchRequestValidator
, this class hides the complexity for verifying authenticity of callbacks from Authy.If do you think that having this functionality in authy.net is a good idea, I'd love to contribute with the project.
I'd like to hear your opinion on this.
Hi folks, why mercurial is included in the configuration instructions? As far as I understand this project uses git as VCS, unless I'm missing something mercurial shouldn't be required.
Please have a look at https://github.com/authy/authy.net/#1-install-mercurial
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.