【发布时间】:2012-12-10 11:29:45
【问题描述】:
我很难找到这方面的详细信息。我需要使用一个处理信用卡的api,它使用curl。所有文档都在 php 中,虽然我可以使用 php,但我的主站点完全使用 razor 视图引擎在 MVC4 中。我需要将它从 php 转换为 .net 中可用的东西
$ curl https://api.stripe.com/v1/customers -u *private key here*:
-d "description=Customer for test@example.com" -d "card[number]=4242424242424242"
-d "card[exp_month]=12" -d "card[exp_year]=2013"
提前感谢您的宝贵时间
【问题讨论】:
-
您可以使用
System.Web.WebClient对象来执行该操作 -
-u和-d选项有什么作用?他们只是查询字符串/发布数据吗?
标签: curl asp.net-mvc-4