Spring REST API Documentation using Swagger [closed]

There currently is not a Spring MVC swagger module available (from Wordnik at least) but in general, enabling swagger on a JVM-based REST service is pretty simple. Swagger server support is divided into two parts–the core server and the integration with the REST service. See the Swagger github repo. Swagger core defines the document that … Read more

Recommendations for SMS gateways with API-support [closed]

Clickatell is a popular SMS gateway, which covers 819 networks in over 220 countries. The API offers a choice of connection options via: HTTP/S, SMPP, SMTP, FTP, XML, SOAP and COM. To give a few examples, the HTTP method would be as simple as requesting the following URI from your application: http://api.clickatell.com/http/sendmsg?to=NUMBER&msg=Message+Body+Here The SMTP method … Read more

OAuth 2 access_token vs OpenId Connect id_token

Originally, OAuth and OpenId are designed for different purpose: OpenId for authentication and OAuth for authorization. OpenId Connect is a unification of the two and serves for both, but does not change their original functionalities. Keeping that in mind, you should be able to find out yourself. 😉 The id_token is used to identify the … Read more

Where is the JavaScript DOM API documented? [closed]

The DOM is actually a separate thing to JavaScript. The DOM can be accessed from other languages, such as VBScript in IE. And general-purpose programming languages like Java, Python, PHP etc have their own non-browser-based DOM libraries. The basic DOM operations that work on both HTML and general XML documents can be found in DOM … Read more

Is there a basic Java Set implementation that does not permit nulls?

Better than extending a particular implementation, you can easily write a proxy implementation of Set that checks for nulls. This analogous to Collections.checkedSet. Other than being applicable to any implementation, you can also be sure that you have overridden all applicable methods. Many flaws have been found by extending concrete collections which then have additional … Read more

Is there a callback for Twitter’s Tweet Button?

Twitter has Web Intent events for loaded, rendered, resize, tweet, follow, retweet, like, and click. twttr.events.bind( ‘tweet’, function (event) { // Do something there } ); The behavior was changed in the fall of 2015 due to the unreliableness of callbacks happening after an event is complete. They will now be triggered when a user … Read more

This page didn’t load Google Maps correctly. See the JavaScript console for technical details

Google recently changed the terms of use of its Google Maps APIs; if you were already using them on a website (different from localhost) prior to June 22nd, 2016, nothing will change for you; otherwise, you will get the aforementioned issue and need an API key in order to fix your error. The free API … Read more

Constructing requests with URL Query String in Python

To perform GET requests with URL query string: import requests params = { ‘action’: ‘subscribe’, ‘callbackurl’: ”, ‘comment’: ”, ‘oauth_consumer_key’: ”, ‘oauth_nonce’: ”, # more key=value pairs as appeared in your query string } r = requests.get(“http://wbsapi.withings.net/notify”, params=params) With that cleared, now you just need to follow the workflow documented on http://www.withings.com/en/api/oauthguide and implement them … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)