简体   繁体   English

VK Api-第一步

[英]VK Api - First steps

i'm trying to work with VK Api. 我正在尝试与VK Api合作。 I see methods for getting user ID. 我看到了获取用户ID的方法。

method=getProfiles&uids={viewer_id}&format=json&v=2.0

Can you please show an example of using it? 您可以举一个使用它的例子吗? An example sending query to VK Api, and getting result. 向VK Api发送查询并获得结果的示例。 Thanks! 谢谢!

You can use info from vk.com/dev 您可以从vk.com/dev使用信息

I use JavaScript and jQuery for work. 我使用JavaScript和jQuery进行工作。

 function sendRequest(method, params, func) { $.ajax({ url: getUrl(method, params), method: 'GET', dataType: 'JSONP', success: func }); } 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM