Category "api"

How to protect an API Key when using JavaScript?

So, I'm developing a small application just for my own use and perhaps an open source project on Git. I'm using an API from Envato Marketplaces, and as you all

For what reason might the camera return the error "Invalid session in request data!"?

The problem is that the error occurs intermittently I have a Dahua HDW2230TP-AS-0280B camera. I back up the video to my server every 10 minutes. The request loo

preventing abuse of API service usage

I am planning on using Laravel in my next web project, for the backend. Using the Laravel's built-in functionality I will build an API service. So my main conce

How to convert SOAP API to REST API using python?

I have to create a python script that should hit a SOAP API and should convert that to Restful API. I have XSD and WSDL files with me. Can someone help me how t

How to select destination output device using Web Audio Api

I have been using web audio api and have created a context, and populated a source buffer with data. It plays fine over the default output device, but i don't

What is the .NET equivalent of "ProducesResponseType" from Net Core?

I have to do a "backward" from an API made with NET CORE to .NET I'm facing a problem changing [ProducesResponseType] from Net Core in a valid equivalent of .N

How to upload an image to use in issue comments via Github API

I'm currently working with Github API to make an iOS github client app. I'd like to implement the feature of creating issues with images. My question is how to

I cannot get my JavaScript REST API to return data

I know there are many similar questions about this issue and most of them are already answered, but I am a beginner on this. This code is a code from a YouTube

The Authorization header is missing

I am getting this error :{"error":{"code":"AuthenticationFailed","message":"Authentication failed. The 'Authorization' header is missing."}} whenever I am tryin

XQuery get data with response Microstrategy

I've script for this. When i runned report, i can take the returns. Token, Auth Type,Expire Time and scope. With Microstrategy and XQuery language, i want to ge

Getting a JSON request in a view (using Django)

I am trying to set up a view to received a JSON notification from an API. I'm trying to figure out how to get the JSON data, and I currently have this as a star

TIDAL API documention - how to get track IDs

I'm using the TIDAL API to retrieve information on what tracks are on what playlists. To log in to the API I'm using the below code: session = tidalapi.Session(

GitHub API (v3): Order tags by creation date

I ran into a problem / question while using the GitHub API. I need a list of all tags created after a single tag. The only way to do this, is to compare the ta

OAuth (Access Token) Vs API Key

I have came across lots of articles and many suggesting to use OAuth over API Key. From my understanding, in OAuth, we are finally getting access token and it i

Is it possible to send a single message to multiple numbers at a time using Twilio?

I'm developing an app that allows users to add people, info, and Name/phone, or select multiple numbers from their iPhone contact list to send SMS messages to t

Google Chrome Extension Manipulate URL

I'm making a Chrome Extension that manipulates the current tabs. When I give it the specific URL, it works. <html> <script> function updateUrl(ta

google map static drawing "route" instead of straight line

I succeeded in getting a google static map displaying a path between 2 coordinates. The problem is that the drawn path is just a straight line between the 2 po

Docker. Communication between Laravel containers

I have a project that I am trying to develop with a microservices approach. I prepared the APIs on two separate microservices and completed their tests. When I

Issue with API Versioning .NET Core 2.2 UnsupportedApiVersion

I am creating an API and need to have versioning done in it. I am using package Microsoft.AspNetCore.Mvc.Versioning 3.1.3 My StartUp.cs is as follows In Confi

How to hide helper functions from public API in c

I'm working on a project and I need to create an API. I am using sockets to communicate between the server (my application) and the clients (the other applicat