Somleng Real Time Data

Overview

Last updated less than a minute ago

Projects

4 Projects

Total Calls

121K Calls

Total Call Minutes

203K Minutes

Total SMS

0 Messages

Total Amount Saved

$4,369.44

Inbound Calls

79.2K Calls

Inbound Call Minutes

159K Minutes

Outbound Calls

41.5K Calls

Outbound Call Minutes

43.5K Minutes

Inbound SMS

0 Messages

Outbound SMS

0 Messages

Total Amount Spent

$22.48

Total Equivalent Twilio Price

$4,391.92


Projects

Legend
= Project No.
= Name
= Description
= Location
= Homepage
= Inbound Calls
= Outbound Calls
= Total Calls
= Inbound Call Minutes
= Outbound Call Minutes
= Total Call Minutes
= Inbound SMS
= Outbound SMS
= Total SMS
= Total Amount Spent
= Total Equivalent Twilio Price
= Total Amount Saved
= Twilio Voice Pricing
= Twilio SMS Pricing
1 Healthy Family Community (mHealth) Beginning in Kampong Chhnang Province...

Read More

Cambodia 2.12K Calls 3.25K Calls 5.37K Calls 4.83K Minutes 4.71K Minutes 9.54K Minutes 0 Messages 0 Messages 0 Messages $17.99 $470.60 $452.61
2 Disaster Risk Reduction and Preparedness in Cambodia Cambodia's geographical location, ava...

Read More

Cambodia 76.9K Calls 38.2K Calls 115K Calls 154K Minutes 38.7K Minutes 193K Minutes 0 Messages 0 Messages 0 Messages $2.21 $3,873.70 $3,871.49
3 iTenure iTenure is a set of computer tools th...

Read More

Cambodia 26 Calls 0 Calls 26 Calls 30 Minutes 0 Minutes 30 Minutes 0 Messages 0 Messages 0 Messages $0.00 $0.00 $0.00
4 Emergency cash-based assistance for Somali refugees Returnee households from Dadaab refug...

Read More

Somalia 171 Calls 41 Calls 212 Calls 259 Minutes 62 Minutes 321 Minutes 0 Messages 0 Messages 0 Messages $2.28 $47.62 $45.34

RTD API

Fetch Real Time Data

Retuns aggregate data about all the projects that are using Somleng.

API Endpoint
http://rtd.somleng.org/api/real_time_data
Example: Fetch Real Time Data
$ curl "http://rtd.somleng.org/api/real_time_data"
Example: Filtering by Date

Fetches Real Time Data within the given date range.

$ curl "http://rtd.somleng.org/api/real_time_data?EndDate=2017-06-30&StartDate=2017-06-01"
Sample Response
{
  "date_updated": "Fri, 28 Jul 2017 12:59:21 +0000",
  "calls_count": 120670,
  "calls_outbound_count": 41451,
  "calls_inbound_count": 79219,
  "calls_minutes": 202788,
  "calls_outbound_minutes": 43505,
  "calls_inbound_minutes": 159283,
  "sms_count": 0,
  "sms_outbound_count": 0,
  "sms_inbound_count": 0,
  "projects_count": 4,
  "total_amount_spent": "$22.48",
  "total_equivalent_twilio_price": "$4,391.92",
  "total_amount_saved": "$4,369.44"
}

Fetch Projects

Returns a list of Projects which are currently using Somleng.

API Endpoint
http://rtd.somleng.org/api/projects
Example: Fetch all Projects
$ curl http://rtd.somleng.org/api/projects
Example: Filtering by Date

Fetches all projects created within in given date range.

$ curl "http://rtd.somleng.org/api/projects?EndDate=2017-06-30&StartDate=2017-06-01"
Sample Response
[
  {
    "id": "822cca23-aa9a-4a18-9a6b-8460a2bd7f2c",
    "name": "Healthy Family Community (mHealth)",
    "description": "Beginning in Kampong Chhnang Province in 2013, the Healthy Family Community project uses mobile phone technology to deliver health messages regarding maternal and child health. Mothers and pregnant women who have registered receive automatic prerecorded voice messages to their phone which are designed to improve health behaviours and increase health service demand. These messages provide information and advice on a range of topics, such as avoiding harmful traditional health practices, and improving nutrition of the mother and baby.",
    "homepage": "https://www.clovekvtisni.cz/en/humanitary-aid/country/cambodia/programs#healthy-family-community-mhealth",
    "date_updated": "Fri, 28 Jul 2017 05:49:36 +0000",
    "date_created": "Wed, 16 Nov 2016 09:46:31 +0000",
    "twilio_price": {
      "country_code": "KH",
      "date_updated": "Sat, 06 May 2017 03:30:37 +0000",
      "date_created": "Thu, 08 Dec 2016 03:04:57 +0000",
      "outbound_voice_price": "$0.100000",
      "outbound_sms_price": "$0.051909",
      "voice_url": "https://www.twilio.com/voice/pricing/kh",
      "sms_url": "https://www.twilio.com/sms/pricing/kh"
    }
  },
  {
    "id": "6bb193d9-876e-4846-a42f-8a35db66b477",
    "name": "Disaster Risk Reduction and Preparedness in Cambodia",
    "description": "Cambodia's geographical location, available resources, and frequency as well magnitude of disasters makes its population very vulnerable to impacts of disasters such as floods, droughts, tropical storms and hurricanes. While emergency aid is the cornerstone of People in Need's work worldwide, the organization believes that the most work that is required is building the institutional capacity of local authorities responsible for disaster management and strengthening the resilience of at-risk communities to help them to be better prepared for disasters.",
    "homepage": "https://www.clovekvtisni.cz/en/humanitary-aid/country/cambodia/programs#disaster-risk-reduction-and-preparedness-in-cambodia",
    "date_updated": "Fri, 28 Jul 2017 12:59:21 +0000",
    "date_created": "Thu, 08 Dec 2016 06:07:04 +0000",
    "twilio_price": {
      "country_code": "KH",
      "date_updated": "Sat, 06 May 2017 03:30:37 +0000",
      "date_created": "Thu, 08 Dec 2016 03:04:57 +0000",
      "outbound_voice_price": "$0.100000",
      "outbound_sms_price": "$0.051909",
      "voice_url": "https://www.twilio.com/voice/pricing/kh",
      "sms_url": "https://www.twilio.com/sms/pricing/kh"
    }
  }
]

Fetch a Project

Returns a single project given an id.

API Endpoint
http://rtd.somleng.org/api/projects/822cca23-aa9a-4a18-9a6b-8460a2bd7f2c
Example: Fetch a Project
$ curl "http://rtd.somleng.org/api/projects/822cca23-aa9a-4a18-9a6b-8460a2bd7f2c"
Sample Response
{
  "id": "822cca23-aa9a-4a18-9a6b-8460a2bd7f2c",
  "name": "Healthy Family Community (mHealth)",
  "description": "Beginning in Kampong Chhnang Province in 2013, the Healthy Family Community project uses mobile phone technology to deliver health messages regarding maternal and child health. Mothers and pregnant women who have registered receive automatic prerecorded voice messages to their phone which are designed to improve health behaviours and increase health service demand. These messages provide information and advice on a range of topics, such as avoiding harmful traditional health practices, and improving nutrition of the mother and baby.",
  "homepage": "https://www.clovekvtisni.cz/en/humanitary-aid/country/cambodia/programs#healthy-family-community-mhealth",
  "date_updated": "Fri, 28 Jul 2017 05:49:36 +0000",
  "date_created": "Wed, 16 Nov 2016 09:46:31 +0000",
  "twilio_price": {
    "country_code": "KH",
    "date_updated": "Sat, 06 May 2017 03:30:37 +0000",
    "date_created": "Thu, 08 Dec 2016 03:04:57 +0000",
    "outbound_voice_price": "$0.100000",
    "outbound_sms_price": "$0.051909",
    "voice_url": "https://www.twilio.com/voice/pricing/kh",
    "sms_url": "https://www.twilio.com/sms/pricing/kh"
  }
}

Fetch Real Time Data about a given Project

Returns Real Time Data for a project given a project id.

API Endpoint
http://rtd.somleng.org/api/projects/822cca23-aa9a-4a18-9a6b-8460a2bd7f2c/real_time_data
Example: Fetch Real Time Data for a Project
$ curl "http://rtd.somleng.org/api/projects/822cca23-aa9a-4a18-9a6b-8460a2bd7f2c/real_time_data"
Sample Response
{
  "date_updated": "Fri, 28 Jul 2017 12:59:21 +0000",
  "calls_count": 120670,
  "calls_outbound_count": 41451,
  "calls_inbound_count": 79219,
  "calls_minutes": 202788,
  "calls_outbound_minutes": 43505,
  "calls_inbound_minutes": 159283,
  "sms_count": 0,
  "sms_outbound_count": 0,
  "sms_inbound_count": 0,
  "projects_count": 4,
  "total_amount_spent": "$22.48",
  "total_equivalent_twilio_price": "$4,391.92",
  "total_amount_saved": "$4,369.44"
}