Browse Source
			 
			
			Add instructions for API Authorization (#1406 ) 
 
 
			
				* Add instructions for API Authorization 
			
			
				 pull/1409/head 
			
			
		 
		
			
				
					
						 
						Thomas Kaul 
					
					3 years ago  
					
						
							 committed by 
							
								 
								GitHub 
							
						 
					
				 
				
			 
		 
		
			
				
					 
					No known key found for this signature in database
					
						
							GPG Key ID:   4AEE18F83AFDEB23 
						
					
				
			
		
		
		
	
		
			
				 1 changed files  with 
10 additions  and 
8 deletions 
			 
			
		 
		
			
				
					
					
					  
					README.md 
				 
			
		 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					
						
						
							
								 
							 
						
						
					 
					@ -190,20 +190,22 @@ Run `yarn test` 
				
			 
			
		
	
		
		
			
				
					 
					 
					
 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					 
					 
					## Public API 
					 
					 
					## Public API 
				
			 
			
		
	
		
		
			
				
					 
					 
					
 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					### Import Activities 
					 
					 
					### Authorization: Bearer Token 
				
			 
			
				
				
			
		
	
		
		
			
				
					 
					 
					
 
					 
					 
					 
				
			 
			
		
	
		
		
			
				
					 
					 
					#### Request 
					 
					 
					 
				
			 
			
		
	
		
		
	
		
		
			
				
					 
					 
					
 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					`POST http://localhost:3333/api/v1/import`  
					 
					 
					Set the header for each request as follows: 
				
			 
			
				
				
			
		
	
		
		
			
				
					 
					 
					
 
					 
					 
					 
				
			 
			
		
	
		
		
			
				
					 
					 
					#### Authorization: Bearer Token 
					 
					 
					 
				
			 
			
		
	
		
		
			
				
					 
					 
					
 
					 
					 
					 
				
			 
			
		
	
		
		
			
				
					 
					 
					Set the header as follows: 
					 
					 
					 
				
			 
			
		
	
		
		
	
		
		
			
				
					 
					 
					
 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					 
					 
					``` 
					 
					 
					``` 
				
			 
			
		
	
		
		
			
				
					 
					 
					"Authorization": "Bearer eyJh..." 
					 
					 
					"Authorization": "Bearer eyJh..." 
				
			 
			
		
	
		
		
			
				
					 
					 
					``` 
					 
					 
					``` 
				
			 
			
		
	
		
		
			
				
					 
					 
					
 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					 
					 
					 
					 
					 
					You can get the _Bearer Token_  via `GET http://localhost:3333/api/v1/auth/anonymous/<INSERT_SECURITY_TOKEN_OF_ACCOUNT>`  or `curl -s http://localhost:3333/api/v1/auth/anonymous/<INSERT_SECURITY_TOKEN_OF_ACCOUNT>` . 
				
			 
			
		
	
		
		
			
				
					 
					 
					 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					 
					 
					 
					 
					 
					### Import Activities 
				
			 
			
		
	
		
		
			
				
					 
					 
					 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					 
					 
					 
					 
					 
					#### Request 
				
			 
			
		
	
		
		
			
				
					 
					 
					 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					 
					 
					 
					 
					 
					`POST http://localhost:3333/api/v1/import`  
				
			 
			
		
	
		
		
			
				
					 
					 
					 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					 
					 
					#### Body 
					 
					 
					#### Body 
				
			 
			
		
	
		
		
			
				
					 
					 
					
 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					 
					 
					``` 
					 
					 
					```