Category : api

I have a pretty basic question regarding building Python extensions with C++. In one of my header files, I have a line #include "veins_python/veins_python.h", which is a relative path that Python does not see. When I run python setup.py build, I get In file included from MyVeinsAppRoss.cc:24: MyVeinsAppRoss.h:25:10: fatal error: veins_python/veins_python.h: No such file or ..

Read more

Working with an old (really old) application. No access to the source so unable to determine what it may be doing but it seems to be the source of unusual behavior. Lets call this application the "Black Box". Here is what is happening. Scenario 1: If I create a directory via the command prompt and ..

Read more

I’m trying to use a C API’s functions in C# so far I could convert basic ones such as: int USB3_TerminateLibrary(void); became [DllImport("Camera.dll", EntryPoint = "USB3_TerminateLibrary", CallingConvention = CallingConvention.Cdecl)] public static extern int USB3_TerminateLibrary(); But the rest of the API functions are extremely difficulty for me: typedef void * CAM_HANDLE; typedef void * BUFF_HANDLE; typedef ..

Read more

I try to create an application for use the AWS API. For this, i programme in c++ with the library CURL. I test my application with "GET" request and it’s work. After, i test with the "PUT" request but, i have an error : <?xml version="1.0" encoding="UTF-8"?> <Error><Code>NotImplemented</Code> <Message>A header you provided implies functionality that ..

Read more

I have the following code: from authentication.api_security import get_user_token //simply get a dictionary with the payload import urllib3 import json def foo(IS_REMOTE_SERVER=True): if IS_REMOTE_SERVER: url_request=’https://MY_FAKE_DOMAIN.com/query=so’ else: url_request=’http://localhost:5010/query=so’ admin_token = get_admin_token() headers = {‘Authorization’: ‘Bearer ‘+user_token} http = urllib3.PoolManager() response = http.request(‘GET’,url_request, headers=headers) data = json.loads(response.data.decode(‘utf-8’)) print (data) My Problem When using WINDOWS 10, the code ..

Read more

I am attempting to use the C++ wrapper for the Alpaca Traders API for the found here: https://github.com/marpaia/alpaca-trade-api-cpp#client-instantiation However, I’m having trouble even connecting to my paper trading account. Here is the code from the wrapper for getting the Alpaca account: httplib::Headers headers(const Environment& environment) { return { {"APCA-API-KEY-ID", environment.getAPIKeyID()}, {"APCA-API-SECRET-KEY", environment.getAPISecretKey()}, }; } std::pair<Status, ..

Read more