Telize

שולם
על ידי Frederic Cambus | מְעוּדכָּן 17 giorni fa | Location
פּוֹפּוּלָרִיוּת

9.8 / 10

חֶבִיוֹן

83ms

רמת שירות

100%

Health Check

N/A

חזרה לכל הדיונים

Client-side geolocation with JSONP?

Rapid account: Aflcio
aflcio
8 anni fa

We’ve been using the free version of this API until yesterday, but just switched over to the paid one, now that the free one has been disabled. However, we’re running into an issue now where we can’t seem to make the new version work with JSONP – since the requests require the Mashape API key to be included in the header, this is causing our $.getJSON call to fail. Can you tell us how we can continue to use the API via JSONP?

Thanks!

Rapid account: Aflcio
aflcio Commented 8 anni fa

Perfect, that was just the information I needed. Thanks!

Rapid account: Fcambus
fcambus Commented 8 anni fa

Hello,

For info, it’s also possible to authenticate using URL query parameters as mentioned here : http://docs.mashape.com/auth-settings#query-parameters

In your case you can keep using the code you were using with the free version and simply replace the old endpoint URL with : https://telize-v1.p.mashape.com/geoip?callback=getgeoip&mashape-key=YourMashapeSecretkey

Regards.

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות