基于php汇率接口调用实例,基于C#的汇率接口调用代码实例

基于C#的汇率接口调用代码实例

代码描述:基于C#的汇率接口调用代码实例

代码平台:聚合数据

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using http://www.doczj.com/doc/e059706ec77da26924c5b06a.html;

using System.IO;

using http://www.doczj.com/doc/e059706ec77da26924c5b06a.html;

using System.Diagnostics;

using System.Web;

//----------------------------------

// 汇率调用示例代码-聚合数据

// 在线接口文档:http://www.doczj.com/doc/e059706ec77da26924c5b06a.html/docs/80

// 代码中JsonObject类下载地址:http://www.doczj.com/doc/e059706ec77da26924c5b06a.html/download/gcm32060 21155665/7458439

//----------------------------------

namespace ConsoleAPI

{

class Program

{

static void Main(string[] args)

{

string appkey = "*******************"; //配置您申请的appkey

//1.常用汇率查询

string url1 = "http://www.doczj.com/doc/e059706ec77da26924c5b06a.html/onebox/exchange/query";

var parameters1 = new Dictionary();

parameters1.Add("key", appkey);//你申请的key

string result1 = sendPost(url1, parameters1, "get");

JsonObject newObj1 = new JsonObject(result1);

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值