logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Login


Options
View
Go to last post Go to first unread
Ryan  
#1 Posted : Monday, August 25, 2014 12:23:18 PM(UTC)
Ryan

Rank: Administration

Groups: Administrators, Registered
Joined: 6/1/2011(UTC)
Posts: 88
United States
Location: Urbana

Thanks: 1 times
Was thanked: 6 time(s) in 6 post(s)

We have added CORS support to API versions 2.0-2.2.

As an example, the following jQuery code now works:

Code:
$.ajax({
    type: 'GET',
    url: 'https://developer.cumtd.com/api/2.2/json/getdeparturesbystop?stop_id=it&key=YOUR_KEY',
    datatype: 'json',
    crossDomain : true
}).then(
    function(data) {
        // handle success
    },
    function(jqXHR, textStatus, errorThrown) {
        // handle error
    }
);

Edited by user Monday, August 25, 2014 12:24:28 PM(UTC)  | Reason: Not specified

thanks 1 user thanked Ryan for this useful post.
Derek on 4/8/2016(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.