Questions tagged as 'api'

1
answer

NodeJs api with promisses

I'm developing an API in TypeScript with NodeJS and MariaDB; when I do an operation with the bank, right below I have a if to check if an error has occurred. productDao.save({name:"Notebook Dell", price:"5000"}, function(err, res){ if(err...
asked by 29.06.2017 / 19:46
1
answer

Basic Authentication Nodejs

I'm starting now with NodeJS (I came from PHP), and I'm creating an API for a my app, I would like to know, how do I make queries based on Auth Basic, I'm not really sure how it works an app for a client, which I always needed to send in the head...
asked by 29.08.2017 / 00:01
1
answer

Returning HTML to an API would be a good practice? Microservice?

This is the scenario: A company will offer information in the form of images and characters and htmls-iframes (coupons, clothing, products) so that your customers (stores, wholesalers, retailers, etc.) insert into their websites. That is, in add...
asked by 09.02.2017 / 16:42
1
answer

Api facebook does not return date of birth

I'm using facebook's api to login and get some user data like first name, last name etc. function apilogin() { console.log('Welcome! Fetching your information.... '); FB.api('me/','GET',{fields:'first_name,last_name,email,birthday'}, functio...
asked by 17.12.2016 / 23:02
1
answer

Requesting APIs with Database for Angles

What APIs to do database requests (preferably mysql) that I have available to work with AngularJS, some that are simpler to use and that run on any server, I would use nodeJS more the servers to run it are more expensive and I can not afford it...
asked by 10.11.2016 / 04:45
1
answer

Doubt with API facebook

I have a blog and I want to create a button for liking / sharing blog posts on facebook. Put the option for the person to enjoy and share the post over the comments of the blog. Is it possible to do this?     
asked by 25.10.2016 / 12:12
1
answer

Consume API fipe in C # [closed]

I am doing studies in C # and MySql. I created a combobox called Marca and another call Modelo . I want to run the fipe api to search for makes and models of vehicles. There is this address below informing you how to consu...
asked by 22.02.2016 / 15:27
1
answer

Treat JSON API query Facebook

I'm making requests for a user's posts to the Facebook API as in the code below. //faz requisição $postagens = file("https://graph.facebook.com/".$url."/posts?access_token=".$token); //imprime as postagens echo $postagens[0]; And I'm havi...
asked by 12.08.2015 / 14:59
1
answer

Is there any tool that makes it possible to create an API based on my database?

I have a database all modeled and with a mass of data, now I need to develop an application that makes available through this REST API this database. I have two development fronts, the frontend and the backend. Is there any way to make this data...
asked by 13.09.2015 / 03:18
2
answers

When I use PathParam or QueryParam?

I know the difference, but when do I use PathParam or QueryParam? Is the following explanation correct?    If there is a scenario to retrieve the record based on id, for example   you need to get the details of the employee whose id is 15, th...
asked by 05.03.2015 / 13:46