I am having trouble saving data from AngularJS to an API as I keep getting a 500 internal server error. The controller is an array that holds the scopes coming from the HTML page. Any assistance would be greatly appreciated. Controller $scope.save = func ...
I'm facing a couple of issues when trying to run multiple Python test scripts exported by the Selenium IDE Python Remote Control plugin formatter. 1) The browser window automatically closes after a python script is completed. I am using Firefox for my tes ...
class App extends Component { state = { data: '' } componentDidMount() { axios.get(`https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=wikipedia&utf8=&format=json`) .then(res => ...
Looking for a solution to the JSONDecodeError: Expecting value: line 1 column 1 (char 0) error? Check out the code snippet provided below: from urllib.request import urlopen api_url = "https://samples.openweathermap.org/data/2.5/weatherq=Lon ...
To make a GET request to a REST API, I require an apikey. The request will be formed like this - $http.get() The response from the API will be in JSON format. However, for security reasons, I don't want the api key to be visible in the URL. Is there any ...
I have been using the Youtube Data API to search for videos, but I am encountering an issue with restricted content appearing in the results. Specifically, music videos from Vevo are showing up even though I only want videos that can be embedded or placed ...
My current challenge involves calling a SOAP-API and finding a way to determine the existence of an object on the target server based on the returned data. The API calls involved are: ContactGet, CustomerGet, and UserGet. If ContactGet returns a match, t ...
Currently, I am in the process of developing a library that has the ability to take a JSON string and format it based on a template and specification selected by the user. Lately, I have begun writing Unit Tests for this library and have encountered diffi ...
I am currently working on an app that utilizes React and Typescript. To retrieve data, I am integrating a free API. My goal is to incorporate a default image for objects that lack images. Here is the project structure: https://i.stack.imgur.com/xfIYD.pn ...
My goal is to translate unknown language strings to English using a Python package called googletrans, which utilizes an API for this purpose. Here is what I attempted: from googletrans import Translator translator = Translator() translator.translate('안 ...
I'm currently working on a project with free code camp where I am attempting to create a weather app using the OpenWeatherMap API. However, I have encountered an issue. My project needs to be submitted on Codepen and use HTTPS for geolocation. Due to ...
My Android application displays raw JSON data from an API, but I want to format it in a pretty print style like this: https://i.stack.imgur.com/hJSe3.png Instead of the current display which looks like this: https://i.stack.imgur.com/kLH9l.png Here is ...
It is common knowledge that Twitter operates in an API-centric manner, meaning all Twitter apps retrieve their data through the API. Upon accessing (or .xml for those who prefer), a JSON formatted result with plaintext content and no additional formattin ...
Is there anyone out there who can confirm whether the google Calendar API (via the npm package googleapis) for node.js or browser supports types that can be utilized in TypeScript? This would allow for a more strongly typed approach in projects using node ...
My workplace has a system in place for processing credit card transactions, but oddly enough, there doesn't seem to be any API integrated into the webpages. We utilize Moneris for this purpose and all I can see in the code is: <?php $monerisURL = ( ...
Utilizing Django in conjunction with Django Rest Framework, I have made the browseable api inaccessible in the settings.py file. Despite this configuration, when I navigate to http://example.com/api - with "example.com" representing my domain - I encounter ...
Has anyone successfully used Spotify's Playlist API in a browser? It seems that the web API only covers metadata, and to access the full API I need to use libspotify. Do I need to set up a Spotify API server myself or use node libraries like node-spot ...
I am facing an issue while trying to populate a table using an API call in NextJS. I have used the getStaticProps function to retrieve the data and pass it to the component. However, when I attempted to use the map() function to iterate over the data objec ...
Currently, I am developing a Node.js + MongoDB API that is hosted on a virtual machine on Google Cloud Platform. The data for the API is stored in a MongoDB instance running on the same VM. I am wondering if it is advisable to run a local MongoDB instance ...
I have set up a local server to experiment with an API in Django. My model, 'Users', is filled with multiple objects and I am utilizing DefaultRouter. If I wanted to DELETE a specific object from this model, what would the URL look like? For instance, for ...
Is there a way to establish a connection between two distinct APIs in different programming languages? Specifically, I have an application built in node.js with MongoDB and another one in Python with MySQL. I'm facing the challenge of establishing a 1: N r ...
I'm relatively new to working with 3rd Party APIs and I'm currently exploring how to integrate Blogger's API into my AngularJS website to create a blog feed feature. After setting everything up, I've made a request and received a 200 s ...
Greetings! I am currently working on a React project where I am managing the authentication process. I am using Material UI and Formik for validation and handling input changes. However, I encountered an issue with my onchange Formik handler in the TEXTF ...
While attempting to retrieve data from an API that requires a key, the output states "app key not found". However, I have successfully tested it using Postman. Below is the code snippet: public class fetchData extends AsyncTask<Void,Void,Void> { ...
Currently, I am attempting to extract the value from a forward geocoder that predicts addresses while a user is typing. My goal is to then send this value to a form with an id of "pickup". However, I am encountering difficulties in capturing the li > a ele ...
Struggling with creating a query parameter to stringify a JSON object. Does anyone have any tips or solutions? ...
I'm encountering an issue when using the POST method in Postman client to interact with Airtable. Despite following the API documentation example exactly and updating the authorization key, I keep getting errors. Oddly enough, the GET method is functionin ...
I am currently working on accessing air traffic data for my region using the data.gov.in API. Here is the link to the API I am utilizing. I am interested in learning how to implement a filter to acquire specific city data, such as Noida. ...
Every time I attempt to generate a client token using Braintree_ClientToken::generate(), I keep receiving a Braintree_Exception_SSLCertificate exception. Despite having the SDK installed and meeting the minimum PHP requirements, I can't seem to figure ...
user/index.vue <tbody> <tr v-for="item in items" :key="item.id" > <td v-if="false" v-text="item.id" /> <td v-text="item.name" /> ...
Currently, I am in the process of developing a web service known as 'A' using Node.js. This service will need to communicate with another service called 'B'. In order for A to properly function, it must initially obtain an access token from B and periodica ...
I have the primary website link, which necessitates an authorization header for access every time. //console.log contains this information - accounts:[{categoryId:"some info"... }] api/v2/accounts To extract accountId and categoryId from the i ...
I am currently working on a project that involves integrating multiple Gmail accounts. I have successfully added the first Gmail account and it is functioning smoothly. However, I encountered an issue when trying to add additional accounts. Upon checking G ...
I'm currently working on developing a frontend application using Javascript Fetch to interact with an API service. One of the tasks I need to accomplish is to create a token by using the POST method and sending an apiKey parameter in the Body. Once I have ...
I'm currently utilizing cURL to send requests to the Plesk API. Whenever I attempt a request that involves extensive processing by Plesk (like creating or deleting a subscription), I encounter a "connection was reset" error in my browser after approx ...
Hey there! So I've been working with the SEMRUSH API and encountered an issue when trying to retrieve data using backlinks_refdomains and backlinks_refips. However, when I called the domain_rank function, it responded in JSON format without any proble ...
Currently facing an issue with the API documentation I'm working on. Despite testing the code, it simply isn't functioning as expected. After spending a considerable amount of time analyzing it, I seem to be at a loss in figuring out where the error lies. ...
Currently, I am in the process of mastering the MERN stack by developing a straightforward shopping list application. My API is set up to handle GET, POST, and DELETE requests successfully, as confirmed through Postman testing. Locally, I can retrieve it ...
As a newcomer to node.js, I'm attempting to describe the issue at hand as clearly as possible. If clarification is needed, please let me know. In my current node.js project, I am faced with a challenge where I need to take a code received from the respons ...
Incorporated Google authentication into my NextJS application. The process involves the user making progress within the web app, which is stored in local storage as an array. If the user decides to register, I receive the session back and then send a PUT r ...
Hello from Argentina! I'm new to programming and recently started a Flask project. I've successfully displayed information from an API using one endpoint and rendered it with Flask. However, I'm now facing the challenge of displaying informa ...
I am delving into the world of Jest unit testing and exploring NodeJS for the first time. Currently, I am attempting to test my API using the code snippet below: const request = require('supertest'); const quick_registration = require('../. ...
Despite successfully using Axios to download a pdf file on the browser with correct page numbers and orientation, the content appears to be empty. Here is the API code snippet: [HttpGet] [Route("~/api/Document")] public HttpResponseMessage Get(in ...
I am a beginner in AngularJS and I am trying to grasp its concepts by studying example codes. Currently, I have found an interesting code snippet that involves the $http.get function. You can find it here: I attempted to replace the URL with my own, but ...
I am working on building a create-next-app that will retrieve data from the News Catcher API and display it within my application. I have obtained an API key to access the News Catcher API. However, I am unsure of where to securely store the API key and h ...
I have been attempting to parse and display the JSON data that is returned from a REST API without any success. When tested locally, the API's URL structure is as follows: http://localhost/apiurl/get-data.php It returns data in the following format ...
Help needed in adding a MailChimp subscriber to a specific group. Subscription is working fine, but struggling with getting them into the desired grouping. Current code snippet: // ADD TO MAILCHIMP SUBSCRIBER $newsletter = $_POST['newsletter']; $newsl ...
I am currently attempting to fetch data from my Jenkins JSON API via HTTPClient. The data I need access to is restricted, so I must authenticate against Jenkins. To do this, I have generated an API Token. However, I am unsure of how to authenticate myself ...
When I send a POST request, how can I retrieve the value associated with the key "success"? Here is what I have tried: @app.route('/register', methods=['GET','POST']) def vid(): if request.method == "POST": firstname=reque ...
I'm currently utilizing the Ionic framework and my inquiry relates to AngularJS. I've set up a JSON API using Ruby on Rails and for authentication, I've opted for ng-token-auth + devise-token-auth. User JSON: { "data": { "id": "1", "type": "us ...
Could you lend me a hand with this issue? Here is the function being called: function apiCreate(url, product) { console.log('Posting request API...' + JSON.stringify(product) ); fetch(url, { dataType: 'json', method: 'post ...
Every attempt to save the output of an API response into a CSV file in an organized manner has been unsuccessful. Below is the script used to retrieve API data: import json import requests import csv # List of keywords to be checked keywords = open("/tes ...
Currently, I am utilizing Docker Windows Toolbox. The docker container was set up using PHP-FPM: docker run -d -v /var/run/docker.sock:/var/run/docker.sock php:7.0-fpm-alpine When I directly use curl from the container shell: curl --unix-socket /var/ru ...
Upon clicking "Add new User", a modal pop-up will appear with a form containing a text field and a checkbox. However, upon clicking the create button, the data is not being posted to the API and the modal pop-up remains open without closing. I would like ...
Currently, I am working on an application that allows users to select a frequency unit (like seconds, minutes, hours, or days) and input the corresponding value. The challenge arises when I need to convert this value into seconds before sending it to the ...
After obtaining my API key, I attempted to integrate the code snippet below: import pyowm owm = pyowm.OWM('API key') mgr = owm.weather_manager() Forecast = mgr.forecast_at_place('London', '3h').forecast max_temperature=[] min ...
I visited the following link for more information: https://www.npmjs.com/package/spotify-web-api-node Here is a code snippet: var SpotifyWebApi = require('spotify-web-api-node'); // credentials are optional var spotifyApi = new SpotifyWebApi( ...
Having trouble applying a filter to a query, resulting in a fatal error. Here is the code snippet: require 'vendor/autoload.php'; use GoogleAnalyticsDataV1betaBetaAnalyticsDataClient; use GoogleAnalyticsDataV1betaOrderBy; use GoogleAnalyticsData ...
In order to avoid Gson errors when parsing objects, I only need the name and id parameters for Dropdown. How can I handle unwanted parameters from the API response in a Flutter object? import 'package:meta/meta.dart'; import 'dart:convert'; c ...
Correct Answer below. I need help with selecting products in bulk rather than individual calls. I've tried multiple syntax combinations but keep receiving 404 or 405 errors. I'm trying to compile a list of product codes, but the error codes persist. Ins ...
Looking to develop a Python script that can take a user-entered question and fetch the answer using Google Custom Search API, Bing, or another search API. When attempting to use the Google Custom Search API, I encountered the following script: <script& ...
I've been trying to figure out how to check the current status of the PlayStation server. This information is typically displayed on their webpage which can be found here: Interestingly, instead of using PHP database queries, PlayStation seems to uti ...
When I need to get the exchange rate from the bank for a specific interval specified in the input, I follow these steps. The interval is defined as [startdate; enddate]. However, in order to make a successful request to the bank, the selected dates must be ...
I am attempting to use an API to upload a file to imgBB, but I encountered the following error message: {"status_code":400,"error":{"message":"Empty upload source.","code":130},"status_txt":&q ...
When returning a JSON response to an API, I am utilizing the json_encode() method. The array includes a key for users that can contain multiple users, or be empty, and a key for course that can either be empty or contain a single object as shown below: { ...
I am puzzled. While running my .net core server and loading the vue project in the same file, I encounter partial success. However, when I start testing the axios/fetch requests, the test project fails in other ways. My CORS policy is set to be very lenie ...
I am attempting to utilize the Wayback Machine Json API in order to retrieve links to archived websites. However, when I follow the instructions provided on their website 1, such as using this URL: When using Python: request = requests.get('http://archiv ...
Hey everyone, I wanted to get some advice on a project I'm working on. I've read a lot about setting up Node/Express with Firebase, but I'm curious about potential challenges when it comes to building and scaling a custom REST API using Fire ...
I am currently working on developing a basic Weather App, and I have chosen to utilize the jQuery Ajax method to fetch data from openweathermap. The function I am using to retrieve the data is as follows: $(document).ready(function(){ $('#submitWeath ...
I am currently developing a MERN stack application that retrieves information regarding college classes and presents it in a table format. The CoursesTable.js component is structured as follows: import React, { useState, useEffect } from 'react'; ...
I have a Python API that retrieves and processes data based on the input parameter 'ID', returning a specific set of fields. Unfortunately, the parameter does not support passing multiple values at once. To address this limitation, I attempted to ...
I can't seem to figure out what's going wrong with my code. I've checked the documentation and it all appears to be correct. I've also gone through several posts and attempted various solutions. Code: router.get('/rank/:rank', async (req, res) => { ...
How can I resolve this issue? Backend: ASP .Net Web APP - API, IIS Frontend: Vue Error: https://i.stack.imgur.com/QG1Yw.png https://i.stack.imgur.com/3tKh7.png Fiddler: https://i.stack.imgur.com/diN08.jpg web.config: <httpProtocol> <cus ...
Currently, I am faced with a challenge while using a websocket server to access data from an ExpressJS API. Whenever I perform a fetch operation that updates the database (Postgres) followed by a GET request, the new record is not being included in the res ...
I attempted to utilize a REST API in CodeIgniter for inserting data. Here's the code snippet I used: public function sensor_post(){ $data = array( 'sensor_id' => $this->input->post('sensor_id'), ...