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 starting point to see that the request...

Laravel how to output db records as XML?

I cant deal with such simple (I think) thing like output records from database as XML. I have eloquent model named Customer and I want to send to output all customers from db so I've tried to...

Turning JSON keys into symbols

I'm really new to the API topic. I've displayed the JSON from API, read a ton of docs and I understand the idea of how to convert JSON keys into ruby symbols but I do not understand how to...

Warning client about deprecated REST API

We are deprecating the REST service and we want to inform the client about this. what is the best practice followed? I can think of following options Pass the deprecation warning message as part...

load a local file to spark using sc.textFile()

#Question# How to load a file from the local file system to Spark using sc.textFile? Do I need to change any -env variables? Also when I tried the same on my windows where Hadoop is not installed...

Linphone registration and placing call using C API (Windows)

Could you please help me with next question. I'm trying to make registration and place call with Linphone thru C API (Windows). I can separately successfully register with local SIP server using...

cURL error 60: See http://curl.haxx.se/libcurl/c/libcurl-errors.html

Hi I am trying to fetch profile data using the google+ rest API but i,m getting this error : Fatal error: Uncaught exception 'GuzzleHttp\Ring\Exception\RingException' with message 'cURL error 60:...

How do I change merchant sku using jet.com api

I am newbie to jet.com api. Earlier I have worked in amazon api now i have a task of working with jet.com api. However I have a simple query that can we change merchant sku using jet api. I have...

AWS-SES open/click tracking

Is there a way to see if someone has open an email sent through AWS simple email service (as notification or from API)? I tried using 'getSendStatistics' but it just shows delivered and bounced...

scroll pagination with Laravel API

I am using Laravel API with paginated data in Android... I want to get auto paginated data. e.g. data on first page load first and when I scroll down, next pages load continously!

Retrieving ListView selected item value in Xamarin.Forms

I'm developing/learning XamarinForms. I'm using Web Api to get values and use them to populate a ListView. Now I want to get current values on ItemSelected and store them for later use, but I...

Laravel API : how to get only some fields and sort the response

I would like to know if I do the things correctly. Let's say I have a table "countries". To get only some fields of this table, in a certain order, I have this url...

Jhipster gateway Full authentication is required to access this resource

Hello all i am working on Jhipster on ubuntu os. my project set up was done sucessfully. but when trying to test apis it gives me error of authentication. here is the error occurred while testing...

How to get the next page results of the blogger API posts/search?

I'm making the following request: https://www.googleapis.com/blogger/v3/blogs/(blogId)/posts/search?key=(myKey)&q=(someSearchTerm) and I'm getting 10 items at the result and a nextPageToken...

In RESTful API, Are Resources need to be directly in relation to domain models?

Consider I have a User resource on database and it contains a list of Addresses with in it. GET /users -> Returns list of users [ { "name":"Rick", "email":"[email protected], ...

REST API EXPRESS JS: Can not download file in Reactjs, which is send by back-end

I created REST API using Express JS to send Excel file: app.get('/download/', async (req, res) => { try { await res.download('./ExcelCopy.xlsx'); } catch (e) { ...

Telethon first steps in python

All right, so I've been intending to use Telethon to automate several things on telegram with Python, but I'm not sure I understand the gist of it. First of all, you need an api_id and an...

error when trying to send SMS from Signalwire API from FusionPBX software

<?php //use SignalWire\Rest; include "/var/www/fusionpbx/app/messages/SignalWire/src/Rest/Client.php"; $client = new Client('fc117c36-f3a3-45b1-8abf-cac52fa3355g',...

Which Instagram API should I use to collect public data?

Does either the Instagram Basic Display API or the Instagram Graph API allow me to simply get any public user's posts/media programatically? Everywhere in the documentation it says "User data" but...

How can we assert the boolean data type in postman tests

I want to assert the boolean data type in the postman. The data value could have true or false. How should we achieve this? I m using this code to verify but it will pass only if it's true but I...

What business logic is the Azure Cost Export applying?

I want to get the most up to date actual costs in Azure. There seem to be 4 ways of doing this with different results: Export Costs to Storage Account Cost Management API Billing API Consumption...

How to acess tweets with bearer token using tweepy, in python?

When I signed up for the Twitter API for research , they gave me 3 keys: API Key, API Secret Key, and Bearer Token. However the Hello Tweepy example, 4 keys are used: consumer_key,...

Trying to connect to an API for IGDB

I've been trying to connect to an API for a Project in school. I'm currently using Ruby. I'm trying to connect to the API for IGDB and display video games and I just cannot. I've been getting...

HMAC 256 Signature in Swift 5 with CryptoKit

What is the most updated way to get a HMAC 256 signature using CryptoKit and Swift 5? After trying different methods mentioned on HMAC SHA256 in Swift 4 and Implementing HMAC and SHA1 encryption...

JSONDecodeError: Expecting value: line 1 column 1 (char 0) streamlit API

I am trying to build up an API based on a machine learning model using flask/streamlit. But I am getting an error JSONDecodeError: Expecting value: line 1 column 1 (char 0) I understand it is an...

Unwanted page refresh with webpack5 in next js

When I turn on webpack5 and call internal api(/api/*) from page after first render, the page refreshes and logs Refreshing page data due to server-side change. after refreshing once, it works fine...

Are there ways to use inline keyboard and comment button together?

I have a telegram bot that sends a message to a channel. I want to implement the button attached to this post (inline keyboard button), but I also want to see the comment button. When you add an...

How to restrict access to anypoint platform public url

since anypoint platform url anypoint.mulesoft.com is publicly accessible anyone can access the resources. Is there anyway i can restrict access to my org users apart from creating access...

Is there a Python VPN API/GUI to start/stop a VPN client?

I am pretty new to Python yet I build a Selenium bot but I need to change my IP address with every different Firefox profile usage. For now I am basically using pywinauto.mouse.click to click my...

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 send a request from container A to...

Relevant tags