com.akdeniz.googleplaycrawler.GooglePlay.UploadDeviceConfigRequest Java Examples

The following examples show how to use com.akdeniz.googleplaycrawler.GooglePlay.UploadDeviceConfigRequest. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GooglePlayAPI.java    From dummydroid with Apache License 2.0 5 votes vote down vote up
/**
 * Uploads device configuration to google server so that can be seen from web
 * as a registered device!!
 *
 * @see https://play.google.com/store/account
 */
public UploadDeviceConfigResponse uploadDeviceConfig() throws Exception {

	UploadDeviceConfigRequest request = UploadDeviceConfigRequest.newBuilder()
			.setDeviceConfiguration(Utils.getDeviceConfigurationProto()).build();
	ResponseWrapper responseWrapper = executePOSTRequest(UPLOADDEVICECONFIG_URL,
			request.toByteArray(), "application/x-protobuf");
	return responseWrapper.getPayload().getUploadDeviceConfigResponse();
}
 
Example #2
Source File: GooglePlayAPI.java    From raccoon4 with Apache License 2.0 5 votes vote down vote up
/**
 * Uploads device configuration to google server so that can be seen from web
 * as a registered device!!
 * 
 * @see https://play.google.com/store/account
 */
public UploadDeviceConfigResponse uploadDeviceConfig() throws Exception {

	UploadDeviceConfigRequest request = UploadDeviceConfigRequest.newBuilder()
			.setDeviceConfiguration(Utils.getDeviceConfigurationProto())
			.setManufacturer("Samsung").build();
	ResponseWrapper responseWrapper = executePOSTRequest(
			UPLOADDEVICECONFIG_URL, request.toByteArray(), "application/x-protobuf");
	return responseWrapper.getPayload().getUploadDeviceConfigResponse();
}
 
Example #3
Source File: GooglePlayAPI.java    From Raccoon with Apache License 2.0 5 votes vote down vote up
/**
 * Uploads device configuration to google server so that can be seen from web
 * as a registered device!!
 * 
 * @see https://play.google.com/store/account
 */
public UploadDeviceConfigResponse uploadDeviceConfig() throws Exception {

	UploadDeviceConfigRequest request = UploadDeviceConfigRequest.newBuilder()
			.setDeviceConfiguration(Utils.getDeviceConfigurationProto()).build();
	ResponseWrapper responseWrapper = executePOSTRequest(UPLOADDEVICECONFIG_URL,
			request.toByteArray(), "application/x-protobuf");
	return responseWrapper.getPayload().getUploadDeviceConfigResponse();
}