Questions tagged as 'api'

2
answers

Iframe to load a preview of an office document

I am creating an extranet and the .doc .xls .ppt files are loaded and saved on the server in a folder ./folder/test.doc and on the extranet it is already shown that this file is registered, now the subject is that in an iframe only display the p...
asked by 04.03.2016 / 23:48
3
answers

Transform a JSONArray into an ArrayObject

My problem is the following, I bring a json from my api , the same I pass it to a JSONArray the topic this is that I want to arm a Array<Especialidad> and I do not know how to do it. Specialty_connect public...
asked by 09.02.2018 / 23:18
2
answers

Problem when showing a json from my localhost

I am developing a app in which I want to connect said app to a api . But I'm having problems receiving the json to be able to show it within my app . I share the code. MainActivity public class MainActivity...
asked by 29.01.2018 / 15:23
1
answer

AEMET OpenData API does not return body

I am trying to use the Aemet API to add weather forecast to one of my apps, but all calls return an empty body. As I see in the documentation, this call should return the data of the last 24 hours, but it returns a 200 without body: link...
asked by 19.04.2017 / 12:11
1
answer

Domain registration / subdomain

I have a website with a domain like miweb.com . I want to create an api rest in a subdomain, with what I would also use: api.miweb.com Is it a separate domain in terms of domain registration?     
asked by 02.02.2017 / 03:11
3
answers

What alternatives to cURL are there to make requests to an API in php?

Would anyone know a function similar to cURL to make requests to an API in php? So far I have used cURL to make http requests, but I was asked to investigate alternatives, for example in cases where you work in an environment that does not al...
asked by 20.02.2017 / 22:18
2
answers

How to build a route with the Google Maps API?

Good, I want to know where to start to research to create a route on the Google map, but I want to make a route to convenience, I mean not optimized by Google, is to indicate the route of a public transport BUS. Thanks     
asked by 21.02.2017 / 21:52
1
answer

Take Json data

I've been trying for a while to get the JSON of the API of League of Legends data and I can not find a way. I give the example of one of the JSON that I can not go. { "23385178": { "summonerId": 23385178,...
asked by 03.04.2017 / 19:47
1
answer

SQLSTATE error [23000] when trying to add a new item to my BD through my api

I am developing a API with slim framework 3 that connects to a local database. The problem is the following, when I try to insert a new element, it throws the following error {"error": {"text": SQLSTATE[23000]: Integrity constr...
asked by 14.02.2018 / 15:48
1
answer

Ontener Dailymotion video id with PHP API

I'm using the dailymotion API to upload videos but I want to get the id of the newly uploaded video but I do not know how to do it. Could someone help me? I have this code: $api->setGrantType( Dailymotion::GRAN...
asked by 02.06.2017 / 02:44