Skip to content

Commit

Permalink
do not demonstrate using JSONP to access endpoints that do not suppor…
Browse files Browse the repository at this point in the history
…t JSONP
  • Loading branch information
lavaturtle committed Sep 2, 2024
1 parent 005ee28 commit e2cfaea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
14 changes: 1 addition & 13 deletions source/includes/json/_local_details.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
### Get organizing locations: details

```js
$(document).ready(function(){
$.ajax({
url: 'https://demo.controlshiftlabs.com/api/local.json?page=1&per_page=3',
dataType: 'jsonp',
})
.done(function(data) {
console.log(data);
});
});
```

> The above code would retrieve one page of location data and log it to the js console. The JSON would be structured like this:
> Example response
```json
{
Expand Down
14 changes: 1 addition & 13 deletions source/includes/json/_local_points.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
### Get organizing locations: points

```js
$(document).ready(function(){
$.ajax({
url: 'https://demo.controlshiftlabs.com/api/local/points.json',
dataType: 'jsonp',
})
.done(function(data) {
console.log(data);
});
});
```

> The above code would retrieve point locations and log them to the js console. The JSON would be structured like this:
> Example response
```json
[
Expand Down

0 comments on commit e2cfaea

Please sign in to comment.