Are there any good automated tools to document REST APIs - json

Are there any automated tools that I can point to our WCF REST API and have it create documentation (preferably with samples)?

Take a look at the Sandcastle project. We're using it to produce MSDN or JavaDoc style Html pages based on the ///<summary> tags on our public C# members.
http://sandcastle.codeplex.com/

Are you using Web Api? If so the following link could help
http://blogs.msdn.com/b/yaohuang1/archive/2012/05/13/asp-net-web-api-introducing-iapiexplorer-apiexplorer.aspx
Here is something on general documentation.
http://blog.programmableweb.com/2010/08/12/web-api-documentation-best-practices/

You can also use Rest Assured library.
For demo with sample script, refer to http://artoftesting.com/automationTesting/restAPIAutomationGetRequest.html

Try Swagger.
Maybe the best open source solution at the moment. It has a lot of tools available for REST API documentation and more.

Related

How to integrate Plurals from Lokalise in backbone application?

I have existing web application based on backbone.js which is already using Lokalise for the localization. But, now I need to use the Plurals from the Localise.
Does anybody know how to achieve this? Please help!!!
If you are using the Lokalise api just add the plural_format to the request, while exporting the project data. see api documentation.

How to use Telegram API in Windows Phone 8?

I would like to use Telegram API for Windows Phone 8. Though unlike other platforms, Telegram doesn't provide source code for Windows Phone. This is unfortunate because it creates a lot of problems for those who want to use it. From my research people mention using REST Service to accomplish that. Though no one showed any exact solution for how to accomplish it. I also read about using RPC calls to accomplish it. I don't know how to do that and I would greatly appreciate someone who could explain step by step to how to implement Telegram in ones app. Big Thanks!
If you need to see source code of an app using the Telegram API you should take a look at github.
There are a lot of apps there using this API:
API, Protocol documentation
Documentation for Telegram API is available here: http://core.telegram.org/api
Documentation for MTproto protocol is available here: http://core.telegram.org/mtproto
Take a look at this one https://telegram.org/apps#telegram-for-wp
You can browser their source code there downloading the zip. Unfortunatelly Stackoverflow does not permit we post a step by step walkthrough of using an API.

google cloud print post

I'm trying to ultimately silently print using Google Cloud Print from a POST function that is called from code on a website.
I succeeded in testing cloud printing using my account and my printers using a form submit.
(you can see the code that worked for that here: https://stackoverflow.com/questions/23975931/programatically-change-file-name-in-google-chrome-print)
The form submit didn't ask me for any authorization that I could tell. It asked me for xsrf. I stumbled across the answer for this by testing here:
https://www.google.com/cloudprint/simulate.html
So my question is can some amazing person please take pity on me and post the entire code for POST to submit a print job to GCP INCLUDING the format for authorization and where I get that info?
I have read the manuals for cloud printing and the info on how to get an oauth (although I don't understand that part yet)
I am missing something that will be obvious to people who have done this before.
I have tried the php code at github - although I do not usually code in php.
I have programmed a lot of API's and there is something I am just missing here.
Thank you profusely in advance!
i developed this simple library in python. https://github.com/escube/GoogleCloudSpooler
You cna use as you wish.
I developed a server version as well, but the lib used is the one in this project.
Try to use it and tell me if you have problem with that, I'll be pleased to help.
You could try using an alternative service such as PrintNode which has an excellent API and is very simple to use.

google.script object in Javascript

I'm working on google app script. There's a statement "google.script is a client-side JavaScript API" in official document
However, I've search throughout internet and cannot find any document about "google.script" API.
I know there're several functions(or properties) such as
google.script.run
google.script.sandbox
google.script.host
because they appear in official examples.
But I want to know more details about this API.
Any help?
Thanks in advance!
Check if this is what you need. Communicate with server functions

Why can't I use SimpleGeo through a URL?

So, Google Places API allows me to receive JSON data through a Google Places API search using a simple:
"https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=50&client=clientId&sensor=true_or_false&signature=SIGNATURE"
(note, includes signature/key).
Why does SimpleGeo not allow this same feature? Is it possible? What is the purpose of all of this server side code that SimpleGeo uses?
Regards,
Ryan
SimpleGeo has recently announced a JavaScript SDK, which includes a JSONP API. This should allow you to do exactly what you're asking -- requesting read-only information from their Context and Places APIs purely from the client side with a simple key to authenticate the request.
I think there are still plenty of purposes for accessing SimpleGeo's data from a server-side application -- not all developers are writing purely JavaScript client-side applications -- but I agree that this new SDK will help a lot of developers.
Also, if you're looking for straightforward REST access to JSON resources without any client libraries, that's also present. See SimpleGeo's documentation on API endpoints.