Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cs_comments_service
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
cs_comments_service
Commits
b87439fa
Commit
b87439fa
authored
Aug 02, 2013
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add missing file
parent
1f5684a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
api/notifications.rb
+11
-0
No files found.
api/notifications.rb
0 → 100644
View file @
b87439fa
post
"
#{
APIPREFIX
}
/notifications"
do
#get all notifications for a set of users and a range of dates
#for example
#http://localhost:4567/api/v1/notifications?api_key=PUT_YOUR_API_KEY_HERE
#with POST params
#user_ids=1217716,196353
#from=2013-03-18+13%3A52%3A47+-0400
#to=2013-03-19+13%3A53%3A11+-0400
#note this takes date format 8601 year-month-day-(hours:minutes:seconds difference from UTC
notifications_by_date_range_and_user_ids
(
CGI
.
unescape
(
params
[
:from
]).
to_time
,
CGI
.
unescape
(
params
[
:to
]).
to_time
,
params
[
:user_ids
].
split
(
','
))
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment