mirror of
https://github.com/danbulant/api_docs
synced 2026-05-27 13:52:12 +00:00
Remove multiple language example from readme, users should just check wiki for instructions
This commit is contained in:
parent
e1e4a77ad5
commit
53b6fe156e
1 changed files with 4 additions and 17 deletions
|
|
@ -5,8 +5,7 @@ language_tabs:
|
||||||
- shell
|
- shell
|
||||||
- ruby
|
- ruby
|
||||||
- python
|
- python
|
||||||
- javascript--browser: Browser!
|
- javascript
|
||||||
- javascript--node: Node!
|
|
||||||
|
|
||||||
toc_footers:
|
toc_footers:
|
||||||
- <a href='#'>Sign Up for a Developer Key</a>
|
- <a href='#'>Sign Up for a Developer Key</a>
|
||||||
|
|
@ -48,16 +47,12 @@ curl "api_endpoint_here"
|
||||||
-H "Authorization: meowmeowmeow"
|
-H "Authorization: meowmeowmeow"
|
||||||
```
|
```
|
||||||
|
|
||||||
```javascript--browser
|
```javascript
|
||||||
const kittn = require('kittn');
|
const kittn = require('kittn');
|
||||||
|
|
||||||
let api = kittn.authorize('meowmeowmeow');
|
let api = kittn.authorize('meowmeowmeow');
|
||||||
```
|
```
|
||||||
|
|
||||||
```javascript--node
|
|
||||||
// node code here!
|
|
||||||
```
|
|
||||||
|
|
||||||
> Make sure to replace `meowmeowmeow` with your API key.
|
> Make sure to replace `meowmeowmeow` with your API key.
|
||||||
|
|
||||||
Kittn uses API keys to allow access to the API. You can register a new Kittn API key at our [developer portal](http://example.com/developers).
|
Kittn uses API keys to allow access to the API. You can register a new Kittn API key at our [developer portal](http://example.com/developers).
|
||||||
|
|
@ -93,17 +88,13 @@ curl "http://example.com/api/kittens"
|
||||||
-H "Authorization: meowmeowmeow"
|
-H "Authorization: meowmeowmeow"
|
||||||
```
|
```
|
||||||
|
|
||||||
```javascript--browser
|
```javascript
|
||||||
const kittn = require('kittn');
|
const kittn = require('kittn');
|
||||||
|
|
||||||
let api = kittn.authorize('meowmeowmeow');
|
let api = kittn.authorize('meowmeowmeow');
|
||||||
let kittens = api.kittens.get();
|
let kittens = api.kittens.get();
|
||||||
```
|
```
|
||||||
|
|
||||||
```javascript--node
|
|
||||||
// node code here!
|
|
||||||
```
|
|
||||||
|
|
||||||
> The above command returns JSON structured like this:
|
> The above command returns JSON structured like this:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
|
@ -163,17 +154,13 @@ curl "http://example.com/api/kittens/2"
|
||||||
-H "Authorization: meowmeowmeow"
|
-H "Authorization: meowmeowmeow"
|
||||||
```
|
```
|
||||||
|
|
||||||
```javascript--browser
|
```javascript
|
||||||
const kittn = require('kittn');
|
const kittn = require('kittn');
|
||||||
|
|
||||||
let api = kittn.authorize('meowmeowmeow');
|
let api = kittn.authorize('meowmeowmeow');
|
||||||
let max = api.kittens.get(2);
|
let max = api.kittens.get(2);
|
||||||
```
|
```
|
||||||
|
|
||||||
```javascript--node
|
|
||||||
// node code here!
|
|
||||||
```
|
|
||||||
|
|
||||||
> The above command returns JSON structured like this:
|
> The above command returns JSON structured like this:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue