get https://api.chartmogul.com/v1/data_sources
Lists all data_source
objects in your ChartMogul account.
Examples
curl -X GET "https://api.chartmogul.com/v1/data_sources" \
-u YOUR_API_KEY:
ChartMogul::DataSource.all
ChartMogul.DataSource.all(config, function (err, res) {
// asynchronously called
});
<?php
ChartMogul\DataSource::all();
?>
api.ListDataSources()
chartmogul.DataSource.all(config)
Result Format
{
"data_sources": [
{
"uuid": "ds_fef05d54-47b4-431b-aed2-eb6b9e545430",
"name": "In-house billing",
"system": "Custom",
"created_at": "2016-01-10 15:34:05",
"status": "idle"
},
{
"uuid": "ds_ade45e52-47a4-231a-1ed2-eb6b9e541213",
"name": "Enterprise billing connection",
"system": "Custom",
"created_at": "2016-01-09 10:14:15",
"status": "idle"
}
]
}
#<ChartMogul::DataSources:0x00000003ed9d58
@data_sources=[
#<ChartMogul::DataSource:0x007ff9f237ba88
@name="In-house billing",
@uuid="ds_fef05d54-47b4-431b-aed2-eb6b9e545430",
@system="Custom",
@status="idle",
@created_at=2016-01-10 15:34:05 UTC,
>,
#<ChartMogul::DataSource:0x007ff9f2379b20
@name="Enterprise billing connection",
@uuid="ds_ade45e52-47a4-231a-1ed2-eb6b9e541213",
@system="Custom",
@status="idle",
@created_at=2016-01-09 10:14:15 UTC
>
]>
{
"data_sources": [
{
"uuid": "ds_fef05d54-47b4-431b-aed2-eb6b9e545430",
"name": "In-house billing",
"system": "Custom",
"created_at": "2016-01-10 15:34:05",
"status": "idle"
},
{
"uuid": "ds_ade45e52-47a4-231a-1ed2-eb6b9e541213",
"name": "Enterprise billing connection",
"system": "Custom",
"created_at": "2016-01-09 10:14:15",
"status": "idle"
}
]
}
<?php
Doctrine\Common\Collections\ArrayCollection::__set_state(array(
"elements" =>
array (
0 =>
ChartMogul\DataSource::__set_state(array(
"uuid" => "ds_fef05d54-47b4-431b-aed2-eb6b9e545430",
"status" => "idle",
"system" => "Custom",
"created_at" => "2016-01-10 15:34:05",
"name" => "In-house billing",
)),
1 =>
ChartMogul\DataSource::__set_state(array(
"uuid" => "ds_ade45e52-47a4-231a-1ed2-eb6b9e541213",
"status" => "idle",
"system" => "Custom",
"created_at" => "2016-01-09 10:14:15",
"name" => "Enterprise billing connection",
))
)));
?>
(*chartmogul.DataSources)(0xc0420c8ba0)({
DataSources: ([]*chartmogul.DataSource) (len=1) {
(*chartmogul.DataSource)(0xc042008440)({
UUID: (string) (len=39) "ds_dc5e3618-edfa-11e6-9e29-f709b6341791",
Name: (string) (len=16) "In-house billing",
CreatedAt: (string) (len=24) "2017-02-08T12:33:57.571Z",
Status: (string) (len=4) "idle",
System: (string) (len=10) "Custom"
})
}
})
DataSources(data_sources=[
<DataSource{created_at=datetime.datetime(2017, 2, 8, 12, 33, 57),
name='In-house billing',
status='idle',
uuid='ds_dc5e3618-edfa-11e6-9e29-f709b6341791',
system='Custom'}>
])
In the response, data_sources
contains an array of data_source
objects that you've created, with the following data:
uuid
- The UUID of thedata_source
object generated by ChartMogul.name
- The name of the data source as specified by you.system
- The type of system from which customer billing data is imported using this data source. For example,Stripe
,Recurly
,GoCardless
,Chargify
,Custom
, and so on.created_at
- The time when this data source was created in the ChartMogul system.status
- The current status of the data import into ChartMogul. For data sources based on integrations maintained by ChartMogul (ie.Stripe
,Braintree
, etc.), if there is no data then status will benever_imported
. If there is data that is being processed then status will beimporting
. If all data has been processed then status will beimport_complete
. For data sources based on ourCustom
data source, if data is currently being processed then status will beworking
and if there's no data being processed then status will beidle
.