I am trying to integrate AlchemyAPI into my c++ project and I'm a little lost regarding where to start. I downloaded the API, obtained the key. The readme file has Unix installation instructions on running the autobuild.sh script then configure and make and make install. I have cygwin installed, I installed autoconf for windows. I'm just guessing there must be a more straightforward way to use AlchemyAPI c++ on windows.
There's two ways to go about this that are probably a lot easier than what you're trying to do:
Using the C# SDK that AlchemyAPI provides, build it, reference it, and call it from your solution.
Bypass the SDKs all together, hitting the API directly by building your own URLs and data strings for HTTP GETs or POSTs (x-www-form-urlencoded) and submitting them using a popular C++ HTTP implementation. (This is all the SDK is really doing anyway.)
An example URL that you could use to build your own interface might be this one (enter your API key to view it in your browser):
http://access.alchemyapi.com/calls/url/URLGetRankedNamedEntities?apikey=YOUR_API_KEY&url=http://www.cnn.com/2011/09/28/us/massachusetts-pentagon-plot-arrest/index.html?hpt=hp_t1&sentiment=1
If you want to parse the results in XML, you can use libxml, and AlchemyAPI's C++ SDK can provide you with an example. If you want to parse the results as JSON, then add 'outputMode=json' to the request and use your favorite JSON parser.
There's more information in the documentation on all of the features and how to implement them in your requests:
http://www.alchemyapi.com/api/
Related
I know that according to this, integrating gRPC for C++ using Bazel on Windows is currently not supported, CMake is the preferred way. But since Bazel is very adaptable and gRPC integration works like a charm on Linux I was wondering if there is some example/howto that's not officially supported, ideally for MSVC. I could not find any.
gRPC for C++ doesn't support this yet, although that is indeed the plan, so there is no current example/howto from the team.
You're welcome to try it out and send pull requests for anything you end up patching to make it work. Alternatively, you can create a new feature request at https://github.com/grpc/grpc/issues.
We have C++ Win32/MFC application, where I need to extract .iso file. I am not able to find any API.
Please consider I cannot use PowerShell as we wanted to run our application in Windows Server 2008.
It would be great if we can do it without using any third party library.
Is there inbuilt support in Windows Programming to extract iso file?
No version of Windows prior to Windows 8 (or the server variant, Server 2012) had the native ability to mount ISO files. You couldn't do it from Explorer, and there was no hidden API function. IMAPI supports burning an ISO, but not mounting one as a local disk.
In order to do this, you will need a third-party library. A quick Google search didn't turn up any promising results. Unfortunately, Stack Overflow is not a recommendation engine. You will have to do your own research. If all you need is to extract data from the ISO, you can use something like 7-Zip.
I would like to know if it was possible to use JNI for an BB10 app. I'm kinda new with this thing and I saw somewhere that is possible.
Because I've an android app but I need to had some special features to make it run properly on BB10 and for that I need to use JNI.
Is it possible ? If yes, is it possible to find a sample or some doc about it somewhere ?
I assume you are asking about running an Android appliction on BB10. Support for JNI does not exist on any of the current official BB10 versions (up to and including 10.2.0). However version 10.2.1 includes a completely different Android runtime that is able to run APK directly including applications that use JNI. I haven't seen any official documentation of this yet however.
I'm looking for cross platform open source third party library for web services which support c++. I have generated c++ files using WSMakeStubs utility but it uses Core Foundation data types. I want a library which provide web service call through c++ so that I can use it on Windows and Mac both the platform.
I wanted stubs that can be used on both Windows and Mac platform.
Could any one suggest me good library.
thanks
I would like to recommend gSoap. In the company I'm working at, we use it for about 7 years now (since version 2.6.0, the actual version is 2.8.3) and only made good experiences with it. Look at the success stories to get an overview of the companies which are using it.
Related:
C++ and SOAP
What is a good platform for devoloping web services in C++?
A Good C++ Library for SOAP
pion is a possibility, though I don't know how it compares to gSoap or other alternatives. I got it working an evening then got distracted with other reverse economies. I seem to remember it having fewer dependencies of the others I researched.
I have looked after, without luck, a free C/C++ API for Windows that can be used in a project I am about to start. There are libraries for Java and C# but the fact is there is no one for C/C++. I need an API that can be integrated in a vs project and we cannot use libraries that run in servers ( as CGI scripts or whatever ). Does anyone know this type of API?
if you want to generate QRcodes have a look at libqrencode it works with cygwin on windows (not sure about VS).
If you want to decode QRcodes have a look at zxing