summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/api/chromeAuthPrivate.json
blob: 92b3550e05f29465bb7f08b4ce8f7221ceb79841 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[
  {
    "namespace": "chromeAuthPrivate",
    "nodoc": "true",
    "functions": [
      {
        "name": "setCloudPrintCredentials",
        "description": "Sets the login credentials for Cloud Print.",
        "type": "function",
        "parameters": [
          {
            "name": "userEmail",
            "type": "string",
            "description": "The email address of the user."
          },
          {
            "name": "robotEmail",
            "type": "string",
            "description": "The email address of the robot account."
          },
          {
            "name": "credentials",
            "type": "string",
            "description": "The login credentials(OAuth2 Auth code)."
          },
          {
            "name": "callback",
            "type": "function",
            "description": "Called when a failure happens. Called upon success only in tests.",
            "optional": "true",
            "parameters": [
              {
                "name": "result",
                "type": "string",
                "description": "A string result code. The value is non-empty on success only in tests.",
                "optional": "true"
              }
            ]
          }
        ]
      }
    ]
  }
]