Newest api Questions

Q&A for professional and enthusiast programmers

write text on each h4 of my html using array of the API

var DomReady = function(){ var _url = 'http://api.nytimes.com/svc/topstories/v1/home.json?api-key=b66efec295294cf38e816b25c409a35d'; $.get(_url, function(data){ console.log(data.results); ...

How to retrieve JSON from a API endpoint using Laravel 5.4?

I have 2 projects made with Laravel 5.4: Prj-1 it is an Restful API that returns JSON. Prj-2 it is an website that consumes the above endpoints. In this way, I have the follow endpoint from Prj-1 : ...

HBase setMaxVersions java API doesn't work

I have a problem: when I execute, with eclipse neon: HTableDescriptor descriptor = new HTableDescriptor(TableName.valueOf("shoppingcart")); HColumnDescriptor cd = new HColumnDescriptor(Bytes....

How to get Woocommerce Rest Api shipment tracking info into c#

I am using Woocommerce rest api into my asp.net mvc application using C#. How to get shipment tracking info of orders. My code is - string url = StoreUrl + "/wp-json/wc/v1/orders/"+ orderId + "/...

I am getting 400 Bad Request for ReST call only in internet explorer

In our running application, one of GET request starts giving response as 400 Bad Request in Internet Explorer. On investigating , I found that GET request doesn't have queryParameters what were ...

Curl command on mac throwing error while making a Rest API call

I am trying to call the Uber API to get services they offer in a particular city, using the following command: curl -X GET -H "Authorization: Token <MyToken>" -H "Content-Type: application/json"...

how to send ' (apostrophe) in viber public account api?

when I send a text message using the below api, Resource URL https://chatapi.viber.com/pa/send_message Post data { "auth_token": "4453b6ac1s345678-e02c5f12174805f9-daec9cbb5448c51r", "...

Is it possible to add Amazon peoduct API to android app?

I am trying to build a price comparison app (only app,it doesn't have website).So is it possible to add Amazon API in android studio, and get results of the product.? I have tried it , but no luck. ...

Building an API with PHP & Slim returning a die() response

I am creating an API endpoint which accepts a post request. A successful post request includes a token with a value. If this token is present then a record is created in my database table. There are ...

UPS Label Stock Dimensions did not Work

I have integrated Shipping API in PHP by using Web Services. My Code which is I am using in API is given below. $labelimageformat['Code'] = 'ZPL'; $LabelStockSize['Height'] = '6'; $LabelStockSize['...

Github mixed content is it possible to use an non-HTTPS API on github.io?

In this project I'm using an API which doesnt run on HTTPS, and I try to run it on github. https://ueeieiie.github.io/react-redux-weather-app/dist/ This is the error I received: Mixed Content: ...

iOS app to get data from website's API

I am developing a website and an iOS app. I want the same functionality both at the website and in the app, so I am thinking that the best idea is to develop the infrastructure on the website first. ...

Flipkart Product API - How to get top selling product from the category

According to the flipkart product api we can get the top selling products from the category, but I'm not able to get the top selling products. According to the flipkart following is the sample url ...

Web API generic error handling

Using MVC API, If we throw an error within our API controller public HttpResponseMessage GetError(int id) { int number1 = 3000; int number2 = 0; var t = ...

How does the laterooms deep link system work? Does anyone have any working examples?

Copying the example code from the Laterooms API manual itself and adjusting it to the current date does not work. This can be reproduced by copying out one of the demo links from from the manual, ...

Swagger Implementation in Django

I have completed the setup of the swagger API, but the problem I am facing is, the parameter which I want to give to the API view are not coming in the Swagger UI. The image showing the Swagger UI

NODE JS basic REQUEST() - how to get response values and concatenate into my res.send()?

A beginners question about NODE JS usage of request() - I built this very simple code of my API to response for an HTTP post which uses REQUEST() to another invoke external API. I am not sure how ...

Returning Books json through dotnetbrowser

I am trying to return JSON string through XMlHTTPRequest response body. the problem is after the method create and instance of AjaxResourceHandler it will go ahead and execute the Get method before ...

Why do my android Webview component losses my php session? [duplicate]

I have a question about Webview and PHP: I am using an Android App that has a Webview Component. The webview component shows a website. I am using the same PHP code both for my website and for my ...

JSON api best way to make it fast

I'm currently working on an Json API for procedral generation of galaxies and I have a lot of calculation, "dices roll", the thing are actually running with PHP, but I'm looking for something faster, ...

file aren't saved anymore, vichuploader

I'm actually creating an api. I'm using vichuploaderBundler to import file and to put them in a specific directory. Since i use my form to send a POST request to create a resource, my ressource get ...

Angular 2 + web api

I've worked on the Tour of Heroes tutorial,works perfectly well. I've made a Web api with C# as a small backend to test further. When I try to join said back-end, angular returns an error 404 not ...

Identifying a Facebook user id from a url?

I've been playing around with the Facebook graphs api for a while, and to the best of my knowledge you shouldn't be able to get a Facebook user's id from their username. I then came accross stalkscan....

Migrating dispatch_group_leave() to Swift 3

I'm trying to migrate the code below to Swift 3. func fetchTemplatesForField(_ fieldId: Int, entryGroupId: Int? = 0, templateFieldResponseDelegate: TemplateFieldResponseDelegate) -> Void { //...

Function to Unfriend Twitter Returns Optional Error

So, here I have a function to unfriend a user displayed in a table. It uses the loop statement at the beginning to get the index of user and follows accordingly. Only, it returns and error indicating ...

Android Studio JSON without Array

Hello my JSON Code looks so: [ { name: "Pop", score: 968 }, { name: "Rock", score: 881 }, { name: "Dance & Electronic", score: 539 }, And so on... My problem is that I do not know how to get ...

How to get refund FinalValueFee from ebay transaction

when the seller refund a transaction in ebay , i would like to check if ebay refund to the seller the fees for the transaction. In the transaction info, get from the api GetOrders, the value is called ...

android mobile app that uses retrofit with basic authentication

I am building a mobile app that consumes APis using retrofit with basic authentication.However I am getting the following error when running the main activity : 2-19 16:53:52.286 24908-24908/? E/...

Microsoft CRM Web API

I want to create a web app, which creates records on Microsoft CRM. Its an application for customers and they don't have organization's credentials.So I want to skip the login page,so they can ...

Can I pull Instagram photos that use a specific hashtag?

Is it possible to pull Instagram photos that use a specific hashtag? Does the latest API allow this?

Using Jquery to display JSON data from API - showing undefined

I'm using jquery and a json array to display the current moon phase and sunrise/set times on a website. This works fine for sunrise/set but for moon phases I've encountered a problem. When the "...

Reading a JSON response from REST API always returns empty text

I hope all is well and I appreciate if you can help me or re-direct me to a similar old post because I couldn't find one. I'm trying to initiate a REST API request and the server will send a JSON ...

Why are data packets missing in Zigbee arduino setup?

I made a setup which consists of 3 Zigbee's, 2 routers(Zigbee S2C's) and 1 coordinator(Zigbee S2). The routers are each connected to arduino nano which collects data from 2 FSR's and an IMU(frame type:...

Redirecting json requests to different endpoints

I am trying to find a way to redirect json requests to different endpoints depending on one of the parameters in json requests. My service provider allows only one webhook url so I have created an ...

How to use ZooKeeper as API Gateway

I'm looking to create micro service architecture based application. I choose Apache ZooKeeper and Curator Library for implement API gateway. But I cannot imagine how ZooKeeper use as API gateway in ...

NodeJS: Good way to write Multiple API Calls in serial

Is there a better/more beautiful way to call multiple APIs after another (in serial) as in my example? var request = require('request'); request('http://www.test.com/api1', function (error, ...

Error with Google API [duplicate]

Help me I'm having an error I do not know how to solve it already insert the key and the app id in the site but it does not know this Error: redirect_uri_mismatch Request Details client_id=...

Values from asp net form to Dto

Going from this article here what i am looking to do is to get the key value pairs sent by an aspnet/html form and then put them into a dto that i can then use elsewhere in my application. I see that ...

Problemas with API Key

I'm having some difficulties trying to access the ontologias of AgroPortal, it says my api key is not valid but I created an account and it was given to me an api key. I'm trying to do like I did ...

Unable to get oAuth token for BigCommerce once click app

I am a complete noob to BigCommerce as well as plugins. And recently planned to develop a one click app which could be installed by the users of any store on their store. I have good hand on php. So, ...

IP Cam Custom Web Interface

I am attempting to create a web interface to interact with one or more ip web camera (1080p +) including PTZ controls. I have search the internet for hours with a hope to find a camera system ...

Microsoft Access Token Request Error - 400 Bad Request

I am trying to get access token from access code. but there is a error of 400 Bad Request error I am using this link to get Access code https://login.microsoftonline.com/common/oauth2/v2.0/authorize?...

Testing the effect of API response time under rate-limiting conditions [on hold]

I am developing a python code to test the google maps Geolocation api (https://developers.google.com/maps/documentation/geolocation/intro ) for my application. I am trying to compute the statistics ...

using twitter api to get Arabic trends , i get symbols instead of the actual trends?

am using this part of code to get trends about Egypt `Egypt_WOE_ID = 23424802 Egypt_trends = twitter_api.trends.place(_id=Egypt_WOE_ID) print Egypt_trends` the problem is instead of getting the ...

I want to fetch more than 200 tweets.Can any one share an example of Spring Social Twitter Streaming Api? How to use streamingOperations() method?

I want to fetch more than 200 tweets.Can any one share an example of Spring Social Twitter Streaming Api? How to use streamingOperations() method? I am not finding any example in the user ...

What is the best practise for REST URLs in querying is reserved or is exist

I have API for booking system. Two basic entities:- Booking and Property public class Booking { public DateTime CheckInDate {get; set;} public DateTime CheckOutDate {get; set;} public int ...

Approach to deploy changes to an existing REST API without

I'm looking for some guidance or thought process to help me get a solution, for managing RESTFul API service deployment, in JAVA. The caveats are that - Should not duplicate the entire code base, ...

How to obtain access token from Yelp Fusion API using NodeJS

I am trying to obtain the access token for Yelp's API. Yelp's API documentation: https://www.yelp.com/developers/documentation/v3/get_started I keep running into the error below on my terminal: ...

What is the best Image Hosting service with API for getting images?

I need: A free or paid image hosting service where I can upload my images in folders. The service has rest API which returns the urls of the images in json format. (Http get request for the json file ...

How can I change the compile version to api 23 android in eclipse?

I'm finishing my project and need to improve compile version of eclipse to android api 23 (marshmallow). How can I keeping minSdkVersion to 11 and targetSdkVersion to 16, but compile my app with api ...
Translating... 0%