Beispiel #1
0
        public async Task<PostActivityResponse> UpdateActivityLog(int activityLogId, PostActivityRequest createRequest)
        {
            string query = string.Format("1/user/-/activities/{0}.json?", activityLogId);

            string queryParameters = SerializeToQueryString<PostActivityRequest>(createRequest);

            return await PostAsync<PostActivityResponse>(query + queryParameters);
        }
Beispiel #2
0
        public async Task<PostActivityResponse> CreateActivityLog(PostActivityRequest createRequest)
        {
            string query = "1/user/-/activities.json?";

            string queryParameters = SerializeToQueryString<PostActivityRequest>(createRequest);

            return await PostAsync<PostActivityResponse>(query + queryParameters);
        }