I need a AWS lambda function in Python
- or -
Post a project like this2872
$$
- Posted:
- Proposals: 3
- Remote
- #1173573
- Awarded
Description
Experience Level: Intermediate
General information for the website: n/a
Description of every page/module: I need a AWS lambda function in Python that would read data using json api from Harvest API using get requet and then would send this data to another API with POST request. I will configure this function to run periodically (like every 5 minutes or so)
Api should send request to Harvest API and:
1. First step – retrieve user list GET https://YOURACCOUNT.harvestapp.com/people
2. Second step – apply each user ID from first step one by one and get the users assigned to projects using this API with parameter updated since 7 days ago
GET https://YOURACCOUNT.harvestapp.com/projects/{PROJECTID}/user_assignments
You can filter by updated_since. To show only the user assignments that have been updated since 2010-09-25 18:30, pass the UTC date time value (URL encoded). Check out the example below.
GET https://YOURACCOUNT.harvestapp.com/projects/projects/{PROJECTID}/user_assignments?updated_since=2015-09-25+18%3A30
HTTP Response: 200 OK
Here is the link to API doc http://help.getharvest.com/api/users-api/users/user-assignments
3. Send the result one by one via a POST request to a URL that I will provide passing all parameters that are received in step 2. The function should remember somehow which record was sent each time and send only the next one, so probably a variable that can be stored in Lambda should be implemented.
Description of requirements/features: I need a AWS lambda function in Python that would read data using json api from Harvest API using get requet and then would send this data to another API with POST request. I will configure this function to run periodically (like every 5 minutes or so)
Api should send request to Harvest API and:
1. First step – retrieve user list GET https://YOURACCOUNT.harvestapp.com/people
2. Second step – apply each user ID from first step one by one and get the users assigned to projects using this API with parameter updated since 7 days ago
GET https://YOURACCOUNT.harvestapp.com/projects/{PROJECTID}/user_assignments
You can filter by updated_since. To show only the user assignments that have been updated since 2010-09-25 18:30, pass the UTC date time value (URL encoded). Check out the example below.
GET https://YOURACCOUNT.harvestapp.com/projects/projects/{PROJECTID}/user_assignments?updated_since=2015-09-25+18%3A30
HTTP Response: 200 OK
Here is the link to API doc http://help.getharvest.com/api/users-api/users/user-assignments
3. Send the result one by one via a POST request to a URL that I will provide passing all parameters that are received in step 2. The function should remember somehow which record was sent each time and send only the next one, so probably a variable that can be stored in Lambda should be implemented.
Specific technologies required: API, Lambda, Pyhon
Extra notes:
Description of every page/module: I need a AWS lambda function in Python that would read data using json api from Harvest API using get requet and then would send this data to another API with POST request. I will configure this function to run periodically (like every 5 minutes or so)
Api should send request to Harvest API and:
1. First step – retrieve user list GET https://YOURACCOUNT.harvestapp.com/people
2. Second step – apply each user ID from first step one by one and get the users assigned to projects using this API with parameter updated since 7 days ago
GET https://YOURACCOUNT.harvestapp.com/projects/{PROJECTID}/user_assignments
You can filter by updated_since. To show only the user assignments that have been updated since 2010-09-25 18:30, pass the UTC date time value (URL encoded). Check out the example below.
GET https://YOURACCOUNT.harvestapp.com/projects/projects/{PROJECTID}/user_assignments?updated_since=2015-09-25+18%3A30
HTTP Response: 200 OK
Here is the link to API doc http://help.getharvest.com/api/users-api/users/user-assignments
3. Send the result one by one via a POST request to a URL that I will provide passing all parameters that are received in step 2. The function should remember somehow which record was sent each time and send only the next one, so probably a variable that can be stored in Lambda should be implemented.
Description of requirements/features: I need a AWS lambda function in Python that would read data using json api from Harvest API using get requet and then would send this data to another API with POST request. I will configure this function to run periodically (like every 5 minutes or so)
Api should send request to Harvest API and:
1. First step – retrieve user list GET https://YOURACCOUNT.harvestapp.com/people
2. Second step – apply each user ID from first step one by one and get the users assigned to projects using this API with parameter updated since 7 days ago
GET https://YOURACCOUNT.harvestapp.com/projects/{PROJECTID}/user_assignments
You can filter by updated_since. To show only the user assignments that have been updated since 2010-09-25 18:30, pass the UTC date time value (URL encoded). Check out the example below.
GET https://YOURACCOUNT.harvestapp.com/projects/projects/{PROJECTID}/user_assignments?updated_since=2015-09-25+18%3A30
HTTP Response: 200 OK
Here is the link to API doc http://help.getharvest.com/api/users-api/users/user-assignments
3. Send the result one by one via a POST request to a URL that I will provide passing all parameters that are received in step 2. The function should remember somehow which record was sent each time and send only the next one, so probably a variable that can be stored in Lambda should be implemented.
Specific technologies required: API, Lambda, Pyhon
Extra notes:
Levon T.
100% (2)Projects Completed
2
Freelancers worked with
1
Projects awarded
17%
Last project
12 Jun 2016
Moldova, Republic of
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
Can you please clarify this:
"The function should remember somehow which record was sent each time and send only the next one"
Do you want the this remembered during each run of a lambda function, or between runs? AWS lambda functions must be stateless so any kind of persistence between runs needs the use of an external service.
1227
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies