beginning to post data to nextcloud tables
This commit is contained in:
		
							parent
							
								
									5b988b14ae
								
							
						
					
					
						commit
						f6eebe56dd
					
				
					 1 changed files with 10 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -54,7 +54,7 @@
 | 
			
		|||
         (headers (list (cons "Authorization" *auth-token*)
 | 
			
		||||
                        (cons "Content-Type" "application/json")))
 | 
			
		||||
         (rows (parse (dex:get
 | 
			
		||||
                       "https://staff.tfcconnection.org/apps/tables/api/1/tables/4/rows"
 | 
			
		||||
                       "https://staff.tfcconnection.org/apps/tables/api/1/tables/5/rows"
 | 
			
		||||
                       :basic-auth '("chris" . "2VHeGxeC^Zf9KqFK^G@Pt!zu2q^6@b")
 | 
			
		||||
                       :verbose t)))
 | 
			
		||||
         (lowid 0)
 | 
			
		||||
| 
						 | 
				
			
			@ -242,6 +242,15 @@
 | 
			
		|||
              :verbose t)
 | 
			
		||||
    ))
 | 
			
		||||
 | 
			
		||||
(defun post-camp-data (data)
 | 
			
		||||
  "Takes the camp data as an alist and sends it to nextcloud tables to be input"
 | 
			
		||||
  (let ((new-data '((63 . "Frodo Braggins") (64 . "Bilbo Braggins"))))
 | 
			
		||||
    (log:info new-data)
 | 
			
		||||
    (dex:post "https://staff.tfcconnection.org/apps/tables/api/1/tables/5/rows"
 | 
			
		||||
              :basic-auth '("chris" . "2VHeGxeC^Zf9KqFK^G@Pt!zu2q^6@b")
 | 
			
		||||
              :content `(("data" . ,(stringify new-data)))
 | 
			
		||||
              :verbose t)))
 | 
			
		||||
 | 
			
		||||
(defun mail-mt-form (form attachment)
 | 
			
		||||
  "Takes the form as an alist and sends a table formatted email
 | 
			
		||||
with the image attached to us"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue