mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-17 00:11:24 +00:00
Now that everything is V3 API, there's no need for such enum.
This commit is contained in:
@@ -23,17 +23,13 @@
|
||||
*/
|
||||
package org.kohsuke.github;
|
||||
|
||||
import com.infradna.tool.bridge_method_injector.BridgeMethodsAdded;
|
||||
import com.infradna.tool.bridge_method_injector.WithBridgeMethods;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import static org.kohsuke.github.ApiVersion.V3;
|
||||
|
||||
/**
|
||||
* Represents an user of GitHub.
|
||||
*
|
||||
@@ -45,14 +41,14 @@ public class GHUser extends GHPerson {
|
||||
* Follow this user.
|
||||
*/
|
||||
public void follow() throws IOException {
|
||||
new Poster(root, V3).withCredential().to("/user/following/"+login,null,"PUT");
|
||||
new Poster(root).withCredential().to("/user/following/"+login,null,"PUT");
|
||||
}
|
||||
|
||||
/**
|
||||
* Unfollow this user.
|
||||
*/
|
||||
public void unfollow() throws IOException {
|
||||
new Poster(root,V3).withCredential().to("/user/following/"+login,null,"DELETE");
|
||||
new Poster(root).withCredential().to("/user/following/"+login,null,"DELETE");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user