MCPcopy Index your code
hub / github.com/Automattic/android-wordpress-com-rest

github.com/Automattic/android-wordpress-com-rest @v1.0.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.4 ↗ · + Follow
63 symbols 112 edges 6 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

WordPress REST Client for Android

Build

To build the library, invoke the following gradle command in the project root directory:

$ ./gradlew build

This will create an aar package at this location: WordPressComRest/build/outputs/aar/WordPressComRest.aar. Feel free to use it directly or put it in a maven repository.

Usage

If you don't want to compile and host it. The easiest way to use it in your Android project is to add it as a library in your build.gradle file, don't forget to add the wordpress-mobile maven repository. For instance:

repositories {
    maven { url 'http://wordpress-mobile.github.io/WordPress-Android' }
}

dependencies {
    // use the latest 1.x version
    compile 'com.automattic:wordpresscom-rest:1.+'
}

LICENSE

This library is dual licensed unded MIT and GPL v2.

Extension points exported contracts — how you extend this code

Listener (Interface)
(no doc)
WordPressComRest/src/main/java/com/wordpress/rest/Oauth.java
ErrorListener (Interface)
(no doc)
WordPressComRest/src/main/java/com/wordpress/rest/Oauth.java
Listener (Interface)
(no doc)
WordPressComRest/src/main/java/com/wordpress/rest/RestRequest.java
ErrorListener (Interface)
(no doc)
WordPressComRest/src/main/java/com/wordpress/rest/RestRequest.java
OnAuthFailedListener (Interface)
(no doc)
WordPressComRest/src/main/java/com/wordpress/rest/RestRequest.java

Core symbols most depended-on inside this repo

getAppID
called by 4
WordPressComRest/src/main/java/com/wordpress/rest/Oauth.java
getAppRedirectURI
called by 4
WordPressComRest/src/main/java/com/wordpress/rest/Oauth.java
getAbsoluteURL
called by 3
WordPressComRest/src/main/java/com/wordpress/rest/RestClient.java
getAppSecret
called by 3
WordPressComRest/src/main/java/com/wordpress/rest/Oauth.java
toString
called by 3
WordPressComRest/src/main/java/com/wordpress/rest/Oauth.java
makeRequest
called by 2
WordPressComRest/src/main/java/com/wordpress/rest/RestClient.java
setAccessToken
called by 2
WordPressComRest/src/main/java/com/wordpress/rest/RestRequest.java
setOnAuthFailedListener
called by 1
WordPressComRest/src/main/java/com/wordpress/rest/RestClient.java

Shape

Method 47
Class 10
Interface 5
Enum 1

Languages

Java100%

Modules by API surface

WordPressComRest/src/main/java/com/wordpress/rest/Oauth.java23 symbols
WordPressComRest/src/main/java/com/wordpress/rest/RestRequest.java18 symbols
WordPressComRest/src/main/java/com/wordpress/rest/RestClient.java13 symbols
WordPressComRest/src/main/java/com/wordpress/rest/JsonRestRequest.java4 symbols
WordPressComRest/src/androidTest/java/src/com/wordpress/rest/OauthTest.java3 symbols
WordPressComRest/src/androidTest/java/src/com/wordpress/rest/RestClientTest.java2 symbols

For agents

$ claude mcp add android-wordpress-com-rest \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact