Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb3f11ed

Browse files
committed
merge aviflax-objects-not-hashes
2 parents262500c +292adc8 commitb3f11ed

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

‎content/v3.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ receive request bodies:
133133
HTTP/1.1 400 Bad Request
134134
Content-Length: 40
135135

136-
{"message":"Body should be a JSONHash"}
136+
{"message":"Body should be a JSONobject"}
137137

138138
3. Sending invalid fields will result in a`422 Unprocessable Entity`
139139
response.

‎content/v3/gists.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ Name | Type | Description
6868

6969
Name | Type | Description
7070
-----|------|--------------
71-
`files`|`hash` |**Required**. Files that make up this gist.
71+
`files`|`object` |**Required**. Files that make up this gist.
7272
`description`|`string` | A description of the gist.
7373
`public`|`boolean` | Indicates whether the gist is public. Default:`false`
7474

75-
The keys in the`files`hash are the`string` filename, and the value is another`hash` with a key of`content`, and a value of the file contents. For example:
75+
The keys in the`files`object are the`string` filename, and the value is another`object` with a key of`content`, and a value of the file contents. For example:
7676

7777
<%= json\
7878
:description => "the description for this gist",
@@ -102,11 +102,11 @@ The keys in the `files` hash are the `string` filename, and the value is another
102102
Name | Type | Description
103103
-----|------|--------------
104104
`description`|`string` | A description of the gist.
105-
`files`|`hash` | Files that make up this gist.
105+
`files`|`object` | Files that make up this gist.
106106
`content`|`string` | Updated file contents.
107107
`filename`|`string` | New name for this file.
108108

109-
The keys in the`files`hash are the`string` filename. The value is another`hash` with a key of`content` (indicating the new contents), or`filename` (indicating the new filename). For example:
109+
The keys in the`files`object are the`string` filename. The value is another`object` with a key of`content` (indicating the new contents), or`filename` (indicating the new filename). For example:
110110

111111
<%= json\
112112
:description => "the description for this gist",

‎content/v3/rate_limit.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ Note: Accessing this endpoint does not count against your rate limit.
3636
The Search API has a[custom rate limit](/v3/search/#rate-limit), separate from
3737
the rate limit governing the rest of the API. For that reason, the response
3838
(shown above) categorizes your rate limit by resource. Within the`"resources"`
39-
hash, the`"search"`hash provides your rate limit status for the
40-
[Search API](/v3/search). The`"core"`hash provides your rate limit status for
39+
object, the`"search"`object provides your rate limit status for the
40+
[Search API](/v3/search). The`"core"`object provides your rate limit status for
4141
all the_rest_ of the API.
4242

4343
####Deprecation Notice
4444

45-
The`"rate"`hash (shown at the bottom of the response above) is
45+
The`"rate"`object (shown at the bottom of the response above) is
4646
[deprecated](/v3/versions/#v3-deprecations) and is scheduled for removal in the next
4747
version of the API.
4848

4949
If you're writing new API client code (or updating your existing code), you
50-
should use the`"core"`hash instead of the`"rate"`hash. The`"core"`hash
51-
contains the same information that is present in the`"rate"`hash.
50+
should use the`"core"`object instead of the`"rate"`object. The`"core"`object
51+
contains the same information that is present in the`"rate"`object.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp