# observe\_rsc\_import\_fetch/2

Source: https://zotonic.com/docs/2293/observe_rsc_import_fetch-2

URI: https://zotonic.com/id/2293

Language: en



Fetch the data for an import of a resource. Returns data in the format used by m\_rsc\_export and m\_rsc\_import. Either returns the JSON data, the imported resource id, or the resource id and a map with a mapping from URIs to resource ids.

Type:

[first](/id/doc_developerguide_notifications#notification-first)

Return:

\{ok, map()\} \| \{ok, m\_rsc:resource\_id()\} \| \{ok, \{m\_rsc:resource\_id(), map()\}\} \| \{error, term()\} \| undefined

`#rsc_import_fetch{}` properties:

- uri: `binary`

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2293?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2293?language=en>)
