sonarrradarrplexorganizrnginxdashboardmuximuxlandingpagestartpagelandinghtpcserverhomepagesabnzbdheimdallembycouchpotatonzbgetbookmarkapplication-dashboard
		
		
		
		
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							48 lines
						
					
					
						
							1.1 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							48 lines
						
					
					
						
							1.1 KiB
						
					
					
				| <?php | |
| 
 | |
| namespace Github\Api\CurrentUser; | |
| 
 | |
| use Github\Api\AbstractApi; | |
| 
 | |
| class Memberships extends AbstractApi | |
| { | |
|     /** | |
|      * List your organization memberships. | |
|      * | |
|      * @link https://developer.github.com/v3/orgs/members/#get-your-organization-membership | |
|      * | |
|      * @return array | |
|      */ | |
|     public function all() | |
|     { | |
|         return $this->get('/user/memberships/orgs'); | |
|     } | |
| 
 | |
|     /** | |
|      * Get your organization membership. | |
|      * | |
|      * @link https://developer.github.com/v3/orgs/members/#get-your-organization-membership | |
|      * | |
|      * @param string $organization | |
|      * | |
|      * @return array | |
|      */ | |
|     public function organization($organization) | |
|     { | |
|         return $this->get('/user/memberships/orgs/'.rawurlencode($organization)); | |
|     } | |
| 
 | |
|     /** | |
|      * Edit your organization membership. | |
|      * | |
|      * @link https://developer.github.com/v3/orgs/members/#edit-your-organization-membership | |
|      * | |
|      * @param string $organization | |
|      * | |
|      * @return array | |
|      */ | |
|     public function edit($organization) | |
|     { | |
|         return $this->patch('/user/memberships/orgs/'.rawurlencode($organization), ['state' => 'active']); | |
|     } | |
| }
 | |
| 
 |