Questions tagged as 'api'

1
answer

How to consume the Spotify API in Ruby on rails 5.2

Working with the Spotify-API in Rails I'm using Rails 5.2.1.1 ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux] As of version 5.2 of Ruby on Rails, some improvements in the sections of security . To connect the Spotify AP...
asked by 04.12.2018 / 06:20
1
answer

Get data-id of HTML elements in Jquery

the code is perfect, the only problem is that when I want to pass the ids parameters to another function (show a modal), I throw them undefined. $(document).ready(() => { const key = '98430029'; $('#form').on('submit',...
asked by 30.09.2018 / 20:43
1
answer

Unable to add header authorization: basic user: password (base16) vue-resource

I have an application in VUE in which I make requests to two APIs, one is mine and the other is from a third party, with mine I have no problems, I can authenticate and make requests correctly, in the main.js I put defect an interceptor that wil...
asked by 02.08.2018 / 21:27
1
answer

Detect change in JSON [closed]

I put you in situation, I have an API that returns the JSON (for example link ) to which I can only access to obtain the data, I can not touch your code. I would like to know every time there is a change in the JSON (for example temp, pressu...
asked by 14.05.2018 / 08:47
2
answers

Python 3 handling error TypeError: catching classes that do not inherit from BaseException is not allowed

When I run this code: i=0 while i<5: i=i+1; try: SellSta=client.get_order(symbol=Symb,orderId=SellOrderNum,recvWindow=Delay) except client.get_order as e: print ("This is an error message!{}".format(i)) #End whil...
asked by 24.11.2018 / 04:35
3
answers

Calculate distance between two points api google maps php

Having the points I need to calculate the distance between them to make a calculation of a price, how could I do it from php? Doing it from the frontend with the javascript api would be unsafe because they could inject a distance that is not cor...
asked by 16.11.2017 / 13:57
4
answers

How to call an api with JavaScript

I must make a Landingpage , and in this I must include 4 lines of 5 API products. How do I call that API from JavaScript and how do I just put 4 lines of 5 products? I have a page that is an API, and that contains some product...
asked by 13.06.2017 / 16:53
1
answer

Collect JSON from an API with Angular 2

I try to pick up the JSON provided by an API that I have created in a service, but I do not receive it for whatever reason. getLibro(id: string){ return this._http.get(this.url + 'libros/' + id) .map(res => {...
asked by 05.06.2017 / 13:18
2
answers

Difference in Java and JS when creating a class and instantiating it?

I am using JS to perform an API and as much as I try I can not understand why, when making a POST request to create a user, it tells me that User is not a constructor. I am "new" in JS and I have in mind the creation of classes / constructors...
asked by 18.03.2017 / 13:24
1
answer

mercadolibre API

I have a problem getting the new id of a item republication directly from MercadoLibre . If I republish an item I get the new id and there is no problem, but if the republication makes it MercadoLibre directly, I do not know how to get...
asked by 08.11.2016 / 03:20