Skip to content

Commit 2ee32f0

Browse files
author
Donald Szeto
committed
Merge branch 'robhudson-doc-fixes' into develop
2 parents 54e8d1f + cf20585 commit 2ee32f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/source/predictionio.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ Afterwards, you can import data or retrieve recommendations for your App by call
3838

3939
To import an item record with the predefined optional attribute "pio_latlng":
4040

41-
>>> client.create_user("i200", ("type3",), { "pio_latlng" : [1.23, 4.56] })
41+
>>> client.create_item("i200", ("type3",), { "pio_latlng" : [1.23, 4.56] })
4242

4343
You may also define your own custom attribute "custom" = "value":
4444

45-
>>> client.create_user("i200", ("type3",), { "pio_latlng" : [1.23, 4.56], "custom": "value" })
45+
>>> client.create_item("i200", ("type3",), { "pio_latlng" : [1.23, 4.56], "custom": "value" })
4646

4747
.. note:: custom attributes and values could be any string but all attribute names with prefix "pio_" are reserved. You should not use the prefix "pio_" when define your custom attributes to avoid conflicts.
4848

@@ -63,7 +63,7 @@ Afterwards, you can import data or retrieve recommendations for your App by call
6363

6464
>>> client.record_action_on_item("like", "i200", { "pio_t": 12345678 })
6565

66-
.. note:: predifined actions: "like", "dislike", "rate", "view", "conversion"
66+
.. note:: predefined actions: "like", "dislike", "rate", "view", "conversion"
6767

6868
**Item Recommendation**
6969

0 commit comments

Comments
 (0)