About the description of the interface I will not introduce, in the official can see the following only look at the handler
Public Function Get_address_api () {$APPID =c (' APPID ');$SCRETID =c (' Scretid ');if (!isset ($_get[' Code ')){$backurl = $this->get_url ();$url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=". $APPID. " redirect_uri= ". UrlEncode ($backurl)." response_type=codescope=jsapi_addressstate=123#wechat_redirect "; Sns
Sina Weibo's API provides a multilingual interface in which Python's interface is provided by the user @ Liu Xuefeng.
Download address and Description: http://michaelliao.github.com/sinaweibopy/
Description Document: Https://github.com/michaelliao/sinaweibopy/wiki/OAuth2-HOWTO
You can also see here: http://code.google.com/p/sinaweibopy/wiki/OAuth2
The code is great, but there's a little bit of it that might
some applications, such as real-time monitoring of public response to emergencies.
The main idea is: a path to real-time data, using the APIs provided by the microblogging search. Here is not the table, call the API can be. The other is to use the search function mentioned above to collect near real-time data one hours ago.
Problems encounteredMicroblogging API access rights, frequency issues
That is, there are limits to the number of accesses to the API per hour. Sina Weibo API uses
/gps_to_offset the offset coordinates based on GPS coordinates location/geo/is_domestic Determine if geo-information coordinates are domestic coordinates POI data read interface location/pois/show_batch Bulk Get poi point information location/pois/search/by_location Get POI point information by address location according to keywords Location/pois/search/by_geo get POI point information according to the key point range Location/pois/search/by_area Get POI point information by rectangular region
Netflix components, including Eureka, Hystrix, Zuul, Archaius, and more.
Netflix Eureka: Load balancing in the cloud, a REST-based service for locating services to enable load balancing in the cloud and failover of middle-tier servers.
Netflix hystrix: Fault-tolerant management tools designed to provide greater fault tolerance for latency and failures by controlling the nodes of services and third-party libraries.
Netflix Zuul: Edge Service tool that provides dynamic routing, monitoring, resili
As a result of the project needs, so learned to the next micro-blogging third-party Licensing login, this record, in order to check.
1. Developers register and improve app information
1.1 Enter http://open.weibo.com/, use Weibo account login, perfect developer information (select individual or company)
1.2 Into the http://open.weibo.com/development, click to create applications, select Mobile applications, perfect information (just test words, some information can be casually filled out, but t
. Create an App* Assuming the application name is called "xx Weibo"* When the app is created, it enters the "development" phase by default and is eligible for authorization* Application Related DataApp key:3145626526//Unique identifier of the appAPP secret:ee9de4d2431be061b22fe328332a1111Redirect uri:http://www.baidu.com3. User authorization of "xx Weibo" resources----OAuth Authorization 2.01> obtaining an unauthorized request Token: Display the login page provided by the server provider* Url:ht
Data structure of JSONFor example:[???? {???????????? "AuthType": "OAuth2",???????? "CAS": "https://auth.bistu.edu.cn",???????? "OAuth2": "https://222.249.250.89:8443",???????? "Androidupgrade": "http://m.bistu.edu.cn/upgrade/Android.php",???????? "Jwapi": "Http://m.bistu.edu.cn/jiaowu",???????? "Icampusapi": "Http://m.bistu.edu.cn/api",???????? "Newsapi": "Http://m.bistu.edu.cn/newsapi"????}]In this set of
will be available later)
include('./Card/Common/class_weixin_adv.php');
Enter the official appid and secret.
$weixin=new class_weixin_adv("appid", "secret");
Initialize the SDK class, get the code, and use the obtained code to get the openid. See the following code comment!
$ Url = "https://api.weixin.qq.com/sns/oauth2/access_token? Appid = appid secret = secret code = ". $ _ GET ['code']. " grant_type = authorization_code"; $ res = $ weixin-> http
. You can also use InMemoryTokenStore to store the TokenStore in the memory.
Note: You can find the corresponding SQL script in the spring-security-oauth2, address is https://github.com/spring-projects/spring-security-oauth/tree/master/spring-security-oauth2/src/test/resources, schema. SQL in the directory is. (The following does not describe the problem of the SQL script)
2). TokenServices; TokenStore ne
NodeJS access API officially supported by Google, which provides background logon authorization and nodejsapi
Install
This library is released through npm. Run the following command to install googleapis and its dependencies:
$ npm install googleapis
Complete list of API support https://developers.google.com/apis-explorer
Use
Example 1: Get the complete address through Google short address
var google = require('googleapis'); var urlshortener = google.urlshortener('v1'); var params = { shortUrl:
Recently looking at the source code of the Oauth2 Library of Twitter (simplegeo/python-oauth2 GitHub
), do not look in ah ... The whole library has a sense of self-system, it looks very close, so it is inconvenient to start from where to look. If you look at the code from the top down, you will definitely be stunned by various functions. From the beginning of main (), it will also be a lot of layers of call
development documentation.
The procedure is as follows:
1 Step 1: the user agrees to the authorization and obtains the code2 Step 2: exchange code for webpage authorization access_token3 Step 3: Refresh access_token (if needed)4. Step 4: pull user information (the scope must be snsapi_userinfo)5 Appendix: Check whether the authorization credential (access_token) is valid
1. on the public platform-Developer Center: webpage authorization to obtain basic user information: Click "modify" to configu
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.