Tag: pi

61 votes
2 answers
2.6K views
API Keys vs HTTP Authentication vs OAuth in a RESTful API

I'm working on building a RESTful API for one of the applications I maintain. We're currently lookin

avatar
Hilario
0 1 0 9
asked 07 September, 2021
45 votes
7 answers
2.8K views
Allow Access-Control-Allow-Origin header using HTML5 fetch API

I am using HTML5 fetch API. var request = new Request('https://davidwalsh.name/demo/arsenal.json');

avatar
Freida
0 1 0 9
asked 07 September, 2021
56 votes
15 answers
1.7K views
Twitter API returns error 215, Bad Authentication Data

I am trying to call following Twitter's API to get a list of followers for a user. http://api.twitter.co

avatar
Alba
0 1 0 9
asked 07 September, 2021
58 votes
2 answers
2.3K views
POST JSON to API using Rails and HTTParty

I would like for a user within my ruby on rails app to be able to submit a ticket to my external ticket manage

avatar
Elicia
0 1 0 9
asked 07 September, 2021
56 votes
6 answers
729 views
How to send a correct authorization header for basic authentication

I am trying to POST data from my API but I can't pass the basic authentication. I try: $.ajax({ type: &

avatar
Kristopher
0 1 0 9
asked 07 September, 2021
60 votes
11 answers
1.3K views
Google Maps v2 - set both my location and zoom in

My question is, does anyone know how to set google maps up, to open up both my location and in a zoomed-in vie

avatar
Kristopher
0 1 0 9
asked 07 September, 2021
53 votes
8 answers
975 views
Find out what process registered a global hotkey? (Windows API)

As far as I've been able to find out, Windows doesn't offer an API function to tell what application

avatar
Elicia
0 1 0 9
asked 07 September, 2021
53 votes
11 answers
2.8K views
Do Google refresh tokens expire?

I have used the refresh token several times in just a short period for testing purposes, but I wonder whether

avatar
Virgil
0 1 0 9
asked 07 September, 2021
66 votes
14 answers
3K views
Couldn't process file resx due to its being in the Internet or Restricted zone or having the mark of the web on the file

I am facing an issue while debugging c# API Coding in Visual studio 2017. Debugging not started and showing a

avatar
Tana
0 1 0 9
asked 07 September, 2021
55 votes
5 answers
954 views
61 votes
6 answers
1.4K views
What is a callback URL in relation to an API?

I've been scouring the net, and can't seem to wrap my head around the idea of a callback URL. In my

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
59 votes
7 answers
782 views
How to use Android's camera or camera2 API to support old and new API versions without deprecation notes?

The new camera2 API confuses me. I want to develop an app (for Android APIs 10 - 21) which uses the device&apo

avatar
Janella
0 1 0 9
asked 07 September, 2021
60 votes
11 answers
2K views
App not setup: This app is still in development mode

I have followed the instructions here: The developers of this app have not set up this app properly for Facebo

avatar
Nereida
0 1 0 9
asked 07 September, 2021
63 votes
11 answers
1.7K views
What does "to stub" mean in programming?

For example, what does it mean in this quote? Integrating with an external API is almost a guarantee in an

avatar
Shantay
0 1 0 9
asked 07 September, 2021
50 votes
13 answers
1.6K views
Boolean method naming readability

Simple question, from a readability standpoint, which method name do you prefer for a boolean method: public

avatar
Tuan
0 1 0 9
asked 07 September, 2021
52 votes
10 answers
964 views
Why aren't Java Collections remove methods generic?

Why isn't Collection.remove(Object o) generic? Seems like Collection<E> could have boolean remov

avatar
Percy
0 1 0 9
asked 07 September, 2021
59 votes
6 answers
1.7K views
DefaultInlineConstraintResolver Error in WebAPI 2

I'm using Web API 2 and I'm getting the following error when I send a POST to my API method using II

avatar
Dwain
0 1 0 9
asked 07 September, 2021
59 votes
7 answers
1.6K views
How to parse freeform street/postal address out of text, and into components

We do business largely in the United States and are trying to improve user experience by combining all the add

avatar
Forrest
0 1 0 9
asked 07 September, 2021
53 votes
8 answers
2.1K views
Call a Server-side Method on a Resource in a RESTful Way

Keep in mind I have a rudimentary understanding of REST. Let's say I have this URL: http://api.animals.c

avatar
User demo
0 1 0 9
asked 07 September, 2021
58 votes
8 answers
1.9K views
Why do C++ libraries and frameworks never use smart pointers?

I read in a few articles that raw pointers should almost never be used. Instead they should always be wrapped

avatar
Kristopher
0 1 0 9
asked 07 September, 2021