Vkontakte api error in GetCampaigns - vk

I am trying to use ads.GetCampaigns method.
And receive the following error:
description = 'Invalid request: v (version) is required'
Everything worked fine for months. Don't understand what version it is needed. There is nothing about version in docs: https://vk.com/dev/ads.getCampaigns
Any suggestions?

Add v parameter to your POST request to VK API.
For the actual version of VK API it should be v=5.73.

Related

IBM Watson Clinical Annotator API Python SDK - adding optional parameter throws a 400

I am following the API documents for analyzing text via the API docs here and the examples on github here. When I add the optional parameter to the annotator to get all of the codes like this:
anno_cd = acd.Annotator(
name='concept_detection',
parameters = {'include_optional_fields':'medical_codes'})
I get this:
Error Occurred: Code 400 Message Bad Request CorrelationId
820af2f3-0b25-477a-bde5-20fc57fd4a4d
Does anyone see what I am doing wrong?
It was a problem with the way the parameters were set. You need to build a collection inside a collection. This works:
anno_cd = acd.Annotator(
name='concept_detection',
parameters = {"expanded": ["true"],"include_optional_fields":["medical_codes"]})

Microfocus ALM OCTANE REST API - Get existing manual test's step details

I am trying to get existing manual test steps from ALM using the below REST API
https://almoctane-apj.saas.microfocus.com/api/shared_spaces/shared_space_id/workspaces/workspace_id/tests/manual_test_id/script
but I get the following result.
{
"creation_time": "2020-01-16T14:36:52Z",
"test_version": "{\"id\":1035,\"type\":\"test_version\"}",
"version_stamp": 5,
"last_modified": "2020-01-17T09:38:20Z",
"script": "- Open Browser\n- Type Username\n- Type PAssword\n- Submit\n- #2012 Call <ReqTest1>\n- Login using <Username> and <Password>\n- ?isLoginSuccesfull"
}
Is there a way to get existing manual test steps with details(like id, description, etc) through REST API?
i know that is six month late , but you could try calling entity test
http://URLdirection:PORT/api/shared_spaces//workspaces//tests?fields=id,latest_version&query=%22(id%3D%27yourTestId%27)%22
and once you have latest version you can call entity test_versions with attribute last_version that you got in the last request
http://URLdirection:PORT/api/shared_spaces//workspaces//test_versions?fields=id,script&query=%22(id%3D%27yourVersionID%27)%22
and there you will get the steps , also you have to consider that before doing this you need to have stablished connection (requested cookies, etc...) for avoiding 403 error and properly setted headers and parameters for the request. and if you're using microfocus library i didn't find any direct call for test_versions entity
EDIT: also you can request to http://URLdirection:PORT/api/shared_spaces//workspaces//test//script

SF API QueryResult throws error

need help with an issue. Here is the java code sample.
String soqlQuery = "SELECT Id FROM ....";
QueryResult qResult = connection.query(soqlQuery);
This throws up the following exception:
Incompatible type 'class com.sforce.soap.partner.QueryResult' specified as xsi:type. It must be a subclass of 'class com.sforce.soap.partner.QueryResult'
Any idea?
You may be having a similar issue to myself although I was using powershell. See Dave Markle's answer to my question here: Powershell Salesforce SOAP API SessionHeader Type Converion Issue
Strange, this issue got resolved automatically when I restarted the server app. Must be something to do with container and caching.

QBO API V3.0: Persistent error today retrieving Tax Rates

We have consistently getting the following error today when using API V3.0 to retrieve TaxRate from QBO:
An application error has occurred while processing your request - Detail: System Failure Error: An unexpected error occurred while accessing or saving your data. Please wait a few minutes and try again. If the problem persists, contact customer support. - Error Code: 10000
Is this a temporary issue with the servers or has something changed in the API ?
Thanks
I tried both the taxrate endpoints(findById and Query) from ApiExplorer and got a successful response.
GetById - https://qb.sbfinance.intuit.com/v3/company/688779980/taxrate/2
Query - https://qb.sbfinance.intuit.com/v3/company/688779980/query?query=select * from TaxRate
Can you please give it a try from ApiExplorer and check if you are hitting the correct endpoints. Otherwise you can raise a support ticket mentioning your company's relamID.
EDIT
Standard BASE URL for V3 - https://quickbooks.api.intuit.com/v3/company
We get the following when we try this call using devkit -
https://quickbooks.api.intuit.com/v3/company/1119166485/query?query=select+*+from+TaxRate&requestid=faf9f5e207134f24930eef40c9b8a21a&
Thanks
There is a bug in .net devkit where IDSquery will not work for count.
You need to use the following lamda function until the fix is in place-
QueryService AccQueryService2 = new QueryService(context);
int accs22= AccQueryService2.Select(c => c).Count();
Refer:
https://intuitpartnerplatform.lc.intuit.com/questions/829658-how-to-select-count-from-invoice-using-idsquery-to-return-int?jump_to=comment_1941998
EDIT:
The team has identified this a bug. They will rectify this in the next release around 1 month from now.

Why does discoverAndAddAccount method of the API Explorer return a General IO Error?

Calling the discoverAndAddAccount method via the API Explorer returns the following error:
HTTP Status 500 - message=General IO error while proxying request; errorCode=006003; statusCode=500.
Can anybody help me identify what I missed?
Did you pass the private key password and SSL key of certificate in the API explorer?
https://developer.intuit.com/docs/0020_customeraccountdata/007_firstrequest
Please verify if you are passing a correct request body
<InstitutionLogin xmlns="http://schema.intuit.com/platform/fdatafeed/institutionlogin/v1">
<credentials>
<credential>
<name>Banking Userid</name>
<value>direct</value>
</credential>
<credential>
<name>Banking Password</name>
<value>anyvalue</value>
</credential>
</credentials>
</InstitutionLogin>
Doc Ref - https://developer.intuit.com/docs/0020_customeraccountdata/customer_account_data_api/0020_api_documentation/0020_discoverandaddaccounts#Discover_and_Add_Request
Also refer the following doc for correct userid and pwd while testing with dummy CC_Bank>
https://developer.intuit.com/docs/0020_customeraccountdata/customer_account_data_api/testing_calls_to_the_api
If it doesn't resolve the issue, then please raise a support ticket.
Link - http://developer.intuit.com/Support/Incident
Thanks
EDIT { Adding Snapshot }
'DiscoverAndAddAccounts' call is working fine for me. Can you share the screenshot. I can look into this and let u know if I get something.
Thanks