I am using Node.js to call the Softlayer API. The problem is, when I make two API call at softlayer client, only the first call gets response objects. Rest face an error. Can anyone help me with the information about how many requests can be processed at a time over SoftLayer API?
The limit is 50 request for second for each user. See:
Is there a rate limit on Softlayer API
What is the 'rate limit' exceeded of SoftLayer API endpoint?
I recommend to post the error you got and/or part of your code in order to get more further help from node.js or softlayer community.
Related
I have been using Microsoft graph API to create/update/delete rows in Excel files.
However, my requests need processing of tens of thousands of records. Which is by default not supported by Microsoft graph API.
In order to do this we have to request workbook-session-id and use it to make a call to graph api for requests comprising of loads of rows.
However, When I try to Request for Workbook-session-id after multiple poling requests also the request fails to respond with a workbook-session-id and I am not able to leverage this feature.
Can Anyone help me resolve this
As MS graph API after the first poll fails to give success and ends up giving me error({"error":{"code":"LostDepartedOperation","message":"We're sorry. We ran into a problem completing your request.","innerError":{"code":"notFoundUncategorized","message":"The requested resource cannot be found.")
I'm a student who's newbie to the world of APIs and I'm working on an assignment where I have to create a NodeJs rest API that would call a SOAP service, transfer the XML response into a JSON object and return it to my angular project that calls this API.
I have looked around and found very little information about this, so is there a good place for me to start (Tutorial, courses, etc..) ?
looking forward to receiving answers because my passing grade is on the line :( </3
You need to break up this problem into multiple steps.
How do we make a rest-api in nodejs?
See a link like: https://www.codementor.io/#olatundegaruba/nodejs-restful-apis-in-10-minutes-q0sgsfhbd
OR How to best create a RESTful API in Node.js
How do we call a soap service from nodejs?
See e.g. SOAP Request using nodejs
How do we call our rest-api from angular?
https://angular.io/guide/http OR
Call Rest API From Angular Application
So break the problem up into steps, find the tutorials that help you implement that part, and put it all together.
Also use console.log and JSON.Stringify to debug your objects. E.g. see: https://levelup.gitconnected.com/5-ways-to-log-an-object-to-the-console-in-javascript-7b995c56af5a
I am building a hotel search engine where I have 20 xml API integration. Now facing a problem of time laps in receiving all 20 xml responses from all API before binding the result page. I am looking for a solution where we can call all API parallel in multithreading and I want to show the api response as soon as I receive 1st response from any API and then merge next response from previous one and update the binding page. In this way I can show result of 1st few hotels starting from very 1st API response.
Please suggest me the way I can achieve my objective in asp.net c#. This is my 1st question in this forum and very eager to have feedback.
You would have to use javascript to display the responses fluently. Basically, have ASP.NET load an empty page then use javascript to call the 20 API endpoints. As the responses come in, update the display. Single page application (SPA) frameworks, such as Angular, are fantastic for these situations.
I have been using the asynchronous abilities of Node.js from quite some time now. But I am stuck on an interesting problem. Basically I have 2 API's that I need to call one after the other. Due to the asynchronous nature of Node.js I cannot retrieve the response of the first API request till it has finished and the respective callback function is called.
What I want to do is that I want to pass the response from the first API as request payload to the second API on the fly and not wait till the first API gets fully completed.
As a possible alternative, should I switch from building rest API to stream APIs?
Any pointers on how to do this?
Thanks
Yes, converting REST API'S to stream API is a better option. Node.js is known for its asynchronous behaviour. Because of the same all REST api's function in the same manner as you described earlier. As someone has previously pointed you could look at the Twitter Stream API for reference.
For more understanding you can check out this link - How to create a streaming API with NodeJS
I am always and constantly getting the following error when trying to follow a user via instagram although the 5000 request limit hasn't been exceeded. Why is this?
{"meta":{"error_type":"APIError","code":400,"error_message":"Client request limit reached"}}
While API request with access token is 5000 (any API call), certain API like follow, unfollow, like, comment are limited to 350 an hour.
I had the same problem. In my case I sent post requets from server side (google app engine) and now I am sending post requests from client (with js) and it works well.
It depends on your request. Instagram has a new API limit, 100 likes/hr, 60 follow/unfollow/hr IF you authenticate server side and sign your headers, check out the Instragram authentication for developers.
I'm currently running a website: http://instapromobiz.com that automates likes/follows/unfollows using these restrictions. It works great, check it out.