asp.net中的api集成 [英] api integration in asp.net

查看:89
本文介绍了asp.net中的api集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

i想知道如何在asp.net中集成任何api。

im在线移动充值网站上做项目。这个2 api将包括在内

一个是服务提供商,另一个是支付网关。

friends,
i want to know how to integrate any api in asp.net.
i m doing project on online mobile recharge site.in this 2 api will be included
one is of service provider and other for payment gateway.

推荐答案

如何在asp.net中集成任何api。

只需将对第三方API服务或程序集的引用添加到您的Web项目中,您应该很好地使用它们。程序集的添加引用和Web服务的添加Web引用。
how to integrate any api in asp.net.
Just add the reference to the 3rd party API service or assembly to your web project and you should be good to use them. 'Add Reference' for assembly and 'Add Web Reference' for a webservice.


除了解决方案1之外,约定是您将库或第三方API程序集添加到您的 bin 文件夹;这相当于使用添加引用选项卡添加引用并搜索程序集。完成后,您可以使用using关键字将库包含在源文件中。



In addition to Solution 1, conventions are that you add the library or the assembly of third-party API to your bin folder; which is equivalent to Adding reference using the Add Reference tab and searching for the assembly. Once that has been done, you can then use the using keyword, to include the library in your source file.

using NamespaceofPackage;





然后您可以在Web应用程序中使用该库。



Then you can use the library in your web application.


这篇关于asp.net中的api集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆