Update API
parent
66437d47aa
commit
7d7d47a4e4
1 changed files with 5 additions and 5 deletions
10
API.md
10
API.md
|
@ -14,7 +14,7 @@ To use the API you can use Ox.App if you use Ox.js, or look at [pandora_client](
|
||||||
|
|
||||||
|
|
||||||
#### JavaScript
|
#### JavaScript
|
||||||
```
|
```html
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
@ -58,7 +58,7 @@ To use the API you can use Ox.App if you use Ox.js, or look at [pandora_client](
|
||||||
```
|
```
|
||||||
|
|
||||||
Or using OxJS
|
Or using OxJS
|
||||||
```
|
```html
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
@ -88,7 +88,7 @@ Ox.load({
|
||||||
|
|
||||||
Using python-ox (install with **easy_install ox**)
|
Using python-ox (install with **easy_install ox**)
|
||||||
|
|
||||||
```
|
```python
|
||||||
import ox
|
import ox
|
||||||
|
|
||||||
api = ox.API('http://archive.arabdigitalexpression.org/api/')
|
api = ox.API('http://archive.arabdigitalexpression.org/api/')
|
||||||
|
@ -98,7 +98,7 @@ item = api.find({'query':{conditions:[{'key': '*', 'value':'test', 'operator':'=
|
||||||
```
|
```
|
||||||
|
|
||||||
Add all items in list 'j:Example' to groups a, b and c
|
Add all items in list 'j:Example' to groups a, b and c
|
||||||
```
|
```python
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
import ox
|
import ox
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ for i in api.find({'query': {
|
||||||
|
|
||||||
|
|
||||||
#### PHP
|
#### PHP
|
||||||
```
|
```php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
class API {
|
class API {
|
||||||
|
|
Loading…
Reference in a new issue