Newest api Questions

Q&A for professional and enthusiast programmers

Sebre API Air Availability Resources

How to send SOAP request to call Air Availability Resources Sebre API in PHP. I tried below code but it is not working. As per WSDL I think I have to mass messageheader and security parameter but ...

how to parse rest api array of array in codeigniter and insert into database

In codeigniter how to insert this values to database when the values are in mulitple array {tat=6, sId=up, muid=2, cId=msVK, photo=, Id=564564, questions={34=Yes, 46=...

No 'Access-Control-Allow-Origin' header is present on the requested resource on localhost

I'm trying to make a call to the Ebay API but it wont run on my local server. I get the following error; No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '...

How to get the `Twitter Media_ID` of shared video from my App..?

I made 1 video and I am sharing it on twitter and retrieving the count and retweet of that video. 1.Sharing video the using following code and on the response. I got the media ID from that ...

Does Twitter post php api integration help for website seo? [on hold]

I am wounder if twitter integrated api via php on website makes some effect on google seo? I want to show twitter posts on my website and learnd that js api or iframes has no effect to webiste google ...

How track competing hotel price in India via API? [on hold]

I was looking for an option to track competing hotel prices using API. My searches will mostly be restricted to hotels in India. My requirement is to get prices for all room categories of the hotel, ...

How to print objects to screen user using Ionic2

I have an API with several values inside. I want to show the values on my screen to the user using kind of label or something. Array with objects Each object has some values like lat and longitude: ...

How do I access yahoo weather API Conditions and forecast json objects

Not sure whats wrong but i am not getting a value for id="hi" nor id="temp" <p>Weather In: <span id="city"></span>,<span id="state"></span></p> <p id="state">...

How do I access an object value from a cached JSON API in Redis cache?

In my Rails app, I have gotten to the stage where I stored the nested API JSON objects as the value of my Redis key eg. "A". The whole object is accessed by calling a GET of "A". However, what would I ...

Deleting unsubscribe in mailgun

I am trying to delete an unsubscribe using the mailgun api, using the following quite straightforward code var client = new RestClient(); client.BaseUrl = new Uri("https://api.mailgun.net/v3"); ...

How to update cookie with key if user leaves prematurely

I'm attempting to simplify the login process for my regular users. My site uses a Session ID and Session KEY to handle security, ID being a 10 digit integer and KEY being 40 character string (which ...

Google maps API change style on timestamp

I was tinkering with the Google maps API and I wanted to change the style of the map on a certain timestamp. For instance: //get date var currdate= new Date(); var currHour= currdate.getHours(); //...

Google Calendar API PHP Insert Event without CLI

I have the following code work in command line. How do I get it work in regular web page called php file. Thank You for all assistance. require_once __DIR__ . '/vendor/autoload.php'; define('...

How to fetch real time stock price of complete NASDAQ [on hold]

I am searching for a possibility to fetch the actual market price of all 3184 stocks traded on NASDAQ via API? I don't care if the data is 15-minutes or so delayed, for me it is important to fetch all ...

Teamspeak 3 module API “Cannot GET /”

I am trying to setup a teamspeak 3 module for my WHMCS website. I've did everything right according to the tutorial. But I also have an API coded in node that works with the module. When I access 0.0....

Facebook Messenger API get online status

I want to develop an apps to send the notification to the iPhone when some one get online on Facebook messenger. Any API for me to get the online status ?

Use BLL functions without reference the DAL in my API

I have 3 project (C#) API, BLL and DAL. The DAL reference the DAL and the API reference the BLL. In my API I need to use all the CRUD functions but I can't use the function from my BLL because VS ...

How to save curl_exec result into variable in Laravel

I'm new to Laravel. Trying to work with external API. In controller i wont just to make variable with json: $testapi = new TestApi(); $data['books'] = $testapi->books(); return view('books....

How iterate the values of an API through map in react?

I want to render multiple objects (days) from a weather API const myApi = 'http://api.openweathermap.org/data/2.5/forecast?q=London,gb&APPID=MY_UNIQUE_ID&cnt=5' I am setting the original ...

Restfull API with only PATCH requests instead of PUT for better extensibility?

We are working on an API when most of resources need to be updated entirely or partially with a set of specific fields according to many use cases. We are planning to use only patch requests for ...

IOS:-Increase Project limit for using google api

Hi I am getting an issue while trying to use google api for my project.I am not able to figure out what the problem is with usage of the api especially when I am using it for map functionality in my ...

Google Doc API: Create a DOC file programmatically

Seems that the Google Docs API only works for creating Sheets in the demo, has anyone found a way to create DOCS programmatically? https://developers.google.com/sheets/api/reference/rest/v4/...

Pass Collection of objects to Get method of Web Api

I tried passing collection of objects fromuri in Post method of Webapi. I would like to do the same using the Get method. Is it possible

Should I use Paypal Payments Standard or REST Payments API to handle subscriptions?

I have to implement paypal payment service on a digital product but, after reading a lot, I still don't know which solution should I choose. Here are my needs (idealy): The service will be charged ...

android drive api this file is not openable

New to Google Drive API and can't seem to read the contents of a Google Doc file. I am able to read the metadata but the file will not "open". I get this Error Code 10, Status{statusCode=This file is ...

API for document language translation

I searched for an API which takes a document as an input and translates that document into a specified language but I'm unable able to find such an API. I know Google provides an API to translate ...

Can we use same serializer for POST, PUT & GET?

Can we use same serializer for creating, updating and getting a resource. is it a best practice to do so ?

API limitation Twitter

I'm new to API programming and I need some help. I have a JAVA application that needs to use twitter API to send a request and get the response for specific data. For example sending tweet ID and ...

How do I insert returned JSON data in a table, coming from an API

So I have a table with the FORM element: <table id="example" class="sortable"> <caption><h3><strong>Product inventory list</strong></h3></caption> ...

Rest convention: Should api send details api url for listings or clients hard code them?

We have listing and details page for mobile, desktop, android and ios? We have two apis- one for listing and other for details of those listings. So one api is assosiated with other. listing api ...

Azure API Management Service not recognizing swagger

I'm trying to use the Azure API Management Service. When I go to Import API, I am currently getting the error below. One or more fields contain incorrect values: Parsing error(s): Unexpected ...

Authorization Policies/Gates for Laravel 5.3 web app consuming own API w/ Passport

Using Laravel 5.3 I've set up a web app that consumes its own API. Authentication successfully handled by Passport. Web app uses auth middleware in routes and Model Policies for authorization. API ...

Misaligned form moodle, it's in the middle of the page

My form on moodle is align in the midle of the page, how i supposed change the css file?image problem

how to set authorization scope using Google login button

I am integrating with Google Drive. I have followed the Google recommended path of putting the login button like this: <div class="g-signin2" data-onsuccess="onSuccessFunc" data-theme="dark">&...

API On R: Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached

I tried to call the Darksky API for weather data, after giving the API key and run the request, i got the error as below: Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was ...

Response from Microsoft Translate API in Python

I've recently been trying to create a some software that will record some speech, change the speech to text, and translate that text to another language. So far, I have accomplished the first two ...

Is Float video view available in Android Youtube API

Developing my android app using Youtube APIs and looking to add all the features that YouTube provides on its actual APP. There is a new feature, when Video is playing and if we will go back that ...

Android…Not getting JSON respone from darksky weather API using Okhttp

I am writing code to build a simple weather app using Darksky API Following is my java code file. In which I am using okHttp 3.5.0 and asynchronously calling the darksky API and writing response on ...

How to apply selected changes of one git repo to another repo?

I am working on API and I have two modes of code which is development and production. So both are in its seperate repo call repo1 and repo2. So I am gonna work on api, I will make changes in ...

Infusionsoft retrieve all custom fields value for specific contact

I've been searching for this solution but haven't found one! I'm using Novak solution's Infusionsoft API. What I'm trying to do is to get value of a custom field for specific contact. Lets say, I've ...

httr POST authentication error

I am trying to structure a POST json request using httr. The API documentation proposes the following the CURL request: curl -X POST -H "Authorization:Token XXXXXXXXX" -H "Content-Type: application/...

How can I specify a warehouse when updating inventory using the Magento API?

I'm utilising the Magento 1.x API in some automation suites in order to update the catalog inventory for particular products. I'm struggling because there doesn't seem to be a way to account for the ...

how to receive data through api from mobile apps? [on hold]

i want to know, i have a mobile app and i want to collect data from it into my database. how does API help me receive data from mobile app?? it more like registering user from mobile can some one ...

Google API client authorization: Internal Server Error 500

I'm using an OAuth 2.0 for Web Server Applications example code on remote web server. $client->authenticate(...) causes Internal Server Error 500. No idea why, can you help me please? Here is ...

Telegram bot doesn't work in the way I programmed

Take a look at this part of code of my telegram bot's script if($textmessage == <command1>) { $force_reply = array( 'force_reply' => true ); $ForceReply = json_encode($force_reply);...

Http caching in Spring REST API project not working

I am making a Spring rest api and want to enable http caching for a resource that returns a list of objects (movies). In my code, I send a response with such headers: public ResponseEntity ...

How do I compare the old data type value with the new ones

So I am using this API which shows the current price and other things when it comes to ethereum coins. And I'm trying to create a small console application that checks if the value has changed from ...

Finding item in list from API in Python

I'm new to using API's and I'm a little lost on how to go about it. I am requesting a list from this source: http://svc.metrotransit.org/NexTrip/Routes It returns a source, and I want to find if a ...

cURL get giving Object Moved This object may be found here

Trying to get a json from this, but keep coming back with Object moved this object may be found here. $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "http://members.lasbm.com/...

Concate response multiple requests KONG

I have one API: { "name": "api-1", "upstream_url": "http://mockbin.com", "hosts": ["Home.com"] } And another API: { "name": "api-2", "upstream_url": "http://httpbin.org", "hosts": ["Home.com"], } ...
Translating... 0%