I'm thinking about integrating Spreedly into my webapp to handle the payments & subscriptions. It's a .Net MVC app, however I could do the payment form in .Net Web Forms if needs be.
I'm just looking through the Spreedly API documentation, and the examples appear to use curl commands which I am very unfamiliar with, e.g. example .
I've googled (and maybe I'm googling for the wrong thing) and while I get lots of websites giving me lots of different examples of curl commands, I am still unsure how to actually use them in the context of a .Net web page?
Any help/links/etc to enlighten me would be much appreciated :)
I've implemented a NuGet package that could help you....
You can also browse the code on GitHub to see how curl maps to HttpClient, for example...
Here's a question that discusses implementing a cURL request using a C# WebRequest -
cURL with user authentication in C#
Here's the .NET binding on the cURL website -
http://curl.haxx.se/libcurl/dotnet/
Finally, this Google search got me a sizable number of results, which seem to be relevant to what you're looking for -
http://www.google.com/search?hl=en&q=C%23+.NET+cURL
Related
I have had no luck whatsoever finding any example code for ASP.NET Web Forms that I can use to let customers sign up for subscriptions. It has been a long while since I've used Stripe, and all references to Web Forms implementations are gone from their docs.
I contacted their support people and still get pointed to using the .NET smaples that implement MVC, but I'm not doing an MVC-based site and have no desire to learn MVC simply to decipher and port the samples over for a Web Forms project.
Does ANYONE have a sample of code for a Web Forms project page (and code-behind) that lets someone sign up for a Stripe subscription??? I have code for a webhook, but how to do this for the web page is proving to be problematic.
Thanks for any help you can give, guys!
There's no specific example for that, but there are a couple of 'Stripe with Webforms' videos that might help:
https://www.youtube.com/watch?v=CGpMRtdxvmQ
https://www.youtube.com/watch?v=6DDNgYxLHvU
I'm a rookie with just a few months of training in programming, so please don't be harsh on me.
Right now I'm working on a simple MVC web app using ASP.NET Core 2.2. My problem is that I have to implement login, with users, that are already provided in a external database.
I have read a number of articles and forums and I can't quite find what I'm looking for. Most of the articles are about extending the built-in authentication of ASP.NET Core which I can't use. The ones that implement fully custom login from external database are written based on older versions of ASP.NET Framework - so I have troubles understanding it, being a newbie at this.
I will be grateful for any kind of directions, suggestions, step by step tutorials etc.
Thank you in advance!
You must need you googled but first i found some post for this problem like this,
this post about CRUD operations with sql server 2017 - Basic CRUD
possible you know this web site here for understand .net core or folder structure .net Core Tutorial
I absolutely recommend this man for every topic about .net core/ .net this post basic Simple API for Authentication
Authentication and Authorization
last 2 post for basic login
https://www.c-sharpcorner.com/article/asp-net-core-razor-pages-simple-login-using-entity-framework-database-first-app/
http://future-shock.net/blog/post/creating-a-simple-login-in-asp.net-core-2-using-authentication-and-authorization-not-identity
I have a mobile App in Android that successfully authenticated with Google api returning id-token and also profile information. Now I need to integrate it with my login and registration which I use .net web api as backend. I found google explaind article but not with c# and nuget library and microsoft docs is little difficult to follow. It will be better if i can integrate it with Identity that visual studio provides when creating new project with user authentication generated.
thanks in advance
I resolved my confusion next day after little digging and trying>
Ok first there are two ways of authenticating with third party which i was mixing them and I got confused.
First one in which your application is web or mobile but with web view.
Second way (that I'am using) in which native android activity handle going to google api, so the resulted id-token I manually send it to my api and use this code in c# to verify, requires Google.Apis.Auth library from nuget
var Payload = await GoogleJsonWebSignature.ValidateAsync(idtoken);
See image of steps need to follow in the second way
For more info:
https://youtu.be/zZt8SFivjps
https://developers.google.com/identity/sign-in/android/start-integrating
https://developers.google.com/identity/sign-in/web/backend-auth
I've been looking through tons of forum posts and documentation, but I can not find out how to authenticate/launch an app published through a Citrix 7.6 Storefront interface programmatically (preferably in C#). I'm extremely new to working with Citrix so any help would be appreciated.
At my company, we currently have a launcher like I described that works with Citrix 6.5 Web Interface, but we get generic errors when we attempt to use the same technique with 7.6 Storefront.
Can anyone provide me with a sample application doing what I want or point me towards an appropriate SDK/Documentation resource? I would be EXCEPTIONALLY grateful for any assistance!
Thanks!
Very very old post but since I was struggling as well, here's some pointers that works well with StoreFront 3.5.
First of all, the following code works with the StoreFront web api and basic HTTP authentication. You must first do this on the StoreFront server to enabled the authentication with the following code:
Open Citrix StoreFront
Click on "Manage Authentication Method"
Check the box "Basic HTTP"
Here's a class that you can drop in that will work given that you install the following nuget packages:
RestSharp
JSON.NET
WebApi C# Sample
(Sorry I wasn't able to past the code directly here because of formatting)
The sample can be copy/pasted into a console application. I have written and cleaned up the code such that anyone can understand and use it.
if you are using the Receiver 4.0 you can use the Receivers -qlaunch parameter.
See the Citrix dokumentation https://support.citrix.com/article/CTX200337
SelfService.exe –qlaunch “appname” is the command and you can use the process start command in c# to launch the application by name.
I hope this will also help as a simple solution.
Regards Bernd
I am developing a web application by using asp.net 3.5 and sql server 2008R2. I have to create a page as like as facebook News Feed (wall post). I need post Status and reply comments. I know it will be done by jQuery but I am not expart of Query. Anyone help me with sample code or demo project?
Thanks
Nahid
Well a sample code for whole project doesn't seem to be the way things work on SO.
However for some things in which you should look is:
Design Idea
Look at some of the web apps which already provide such feature like Hootsuit, Facebook, Sesmic, etc
API (If using data from other websites)
Facebook Graph API
Data Handeling
Consider looking at Json.
Try out some hands on AJAX possibly from jQuery
Json Handling in (.Net) C# with Json.Net or JavaScriptSerializer
Facebook C# SDK (If data querying from facebook)
Authentication & Authorization
Forms Authentication
ASP.Net Memberships
And could be many more depending on how you specifically implement such feature in your website.
And don't forget using development tools like Firebug and Fiddler, will be very helpful when you debug your code.