mirror of
https://github.com/LightAir/turbo-rss.git
synced 2026-02-04 12:06:20 +00:00
updated usage.md with latest updates
This commit is contained in:
@@ -55,7 +55,25 @@ feed.item(itemOptions);
|
|||||||
* `lat` _optional_ **number** The latitude coordinate of the item.
|
* `lat` _optional_ **number** The latitude coordinate of the item.
|
||||||
* `long` _optional_ **number** The longitude coordinate of the item.
|
* `long` _optional_ **number** The longitude coordinate of the item.
|
||||||
* `custom_elements` _optional_ **array** Put additional elements in the item (node-xml syntax)
|
* `custom_elements` _optional_ **array** Put additional elements in the item (node-xml syntax)
|
||||||
|
* `enclosure` _optional_ **object** An enclosure object
|
||||||
|
```js
|
||||||
|
/* enclosure takes url or file key for the enclosure object
|
||||||
|
|
||||||
|
url: _required_ url to file object (or file)
|
||||||
|
file: _required_ path to binary file (or url)
|
||||||
|
size: _optional_ size of the file
|
||||||
|
type: _optional_ if not provided the mimetype will be guessed
|
||||||
|
based on the extension of the file or url,
|
||||||
|
passing type to the enclosure will override the guessed type
|
||||||
|
*/
|
||||||
|
|
||||||
|
{
|
||||||
|
'url' : 'http://www.example.com/path/to/image',
|
||||||
|
'size' : 1668, //
|
||||||
|
'type' : 'image/jpeg'
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
||||||
#### Feed XML
|
#### Feed XML
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|||||||
Reference in New Issue
Block a user