Skip to content

Commit

Permalink
deploy: ea00342
Browse files Browse the repository at this point in the history
  • Loading branch information
Step7750 committed Aug 5, 2023
1 parent 51cab64 commit 81929e6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -342,20 +342,20 @@
<div class="dark-box"></div>
<div class="content">
<h1 id='introduction'>Introduction</h1>
<p>Welcome to the CSGOFloat API! You can use our API to access CSGOFloat API endpoints such as market listings, inspect link retrieval, and more!</p>
<p>Welcome to the CSFloat API! You can use our API to access CSFloat API endpoints such as market listings, inspect link retrieval, and more!</p>

<p>You can view code examples in the dark area to the right, and you can switch the programming language of the examples with the tabs in the top right.</p>
<h1 id='authentication'>Authentication</h1>
<p>CSGOFloat uses API keys to allow access to the API. You can register a new CSGOFloat API key on your <a href="https://csgofloat.com/profile">profile</a> under the &quot;developer&quot; tab.</p>
<p>CSFloat uses API keys to allow access to the API. You can register a new CSFloat API key on your <a href="https://csfloat.com/profile">profile</a> under the &quot;developer&quot; tab.</p>

<p>CSGOFloat API expects for the API key to be included in most API requests. Endpoints that require an API Key will state so. The authorization header should look like the following:</p>
<p>CSFloat API expects for the API key to be included in most API requests. Endpoints that require an API Key will state so. The authorization header should look like the following:</p>

<p><code>Authorization: &lt;API-KEY&gt;</code></p>

<aside class="notice">
You must replace <code>&lt;API-KEY&gt;</code> with your personal API key.
</aside>
<h1 id='listings'>Listings</h1><h2 id='get-all-listings'>Get All Listings</h2><div class="highlight"><pre class="highlight shell tab-shell"><code>curl <span class="s2">"https://csgofloat.com/api/v1/listings"</span>
<h1 id='listings'>Listings</h1><h2 id='get-all-listings'>Get All Listings</h2><div class="highlight"><pre class="highlight shell tab-shell"><code>curl <span class="s2">"https://csfloat.com/api/v1/listings"</span>
</code></pre></div>
<blockquote>
<p>The above command returns JSON structured like this:</p>
Expand Down Expand Up @@ -428,9 +428,9 @@ <h1 id='listings'>Listings</h1><h2 id='get-all-listings'>Get All Listings</h2><d
</span><span class="err">...</span><span class="w">
</span><span class="p">]</span><span class="w">
</span></code></pre></div>
<p>This endpoint retrieves all active listings on CSGOFloat Market.</p>
<p>This endpoint retrieves all active listings on CSFloat Market.</p>
<h3 id='http-request'>HTTP Request</h3>
<p><code>GET https://csgofloat.com/api/v1/listings</code></p>
<p><code>GET https://csfloat.com/api/v1/listings</code></p>
<h3 id='query-parameters'>Query Parameters</h3>
<table><thead>
<tr>
Expand Down Expand Up @@ -525,7 +525,7 @@ <h3 id='query-parameters'>Query Parameters</h3>
<td>Must be in the form: <code>ID&#124;POSITION?[,ID&#124;POSITION?...]</code>. Position being the sticker slot on the weapon.</td>
</tr>
</tbody></table>
<h2 id='get-a-specific-listing'>Get a Specific Listing</h2><div class="highlight"><pre class="highlight shell tab-shell"><code>curl <span class="s2">"https://csgofloat.com/api/v1/listings/324288155723370196"</span>
<h2 id='get-a-specific-listing'>Get a Specific Listing</h2><div class="highlight"><pre class="highlight shell tab-shell"><code>curl <span class="s2">"https://csfloat.com/api/v1/listings/324288155723370196"</span>
</code></pre></div>
<blockquote>
<p>The above command returns JSON structured like this:</p>
Expand Down Expand Up @@ -597,7 +597,7 @@ <h2 id='get-a-specific-listing'>Get a Specific Listing</h2><div class="highlight
</span></code></pre></div>
<p>This endpoint retrieves the details for a specific listing, regardless of whether it is &quot;active&quot; or &quot;in-active&quot; (ie. <code>state</code> != <code>listed</code>).</p>
<h3 id='http-request-2'>HTTP Request</h3>
<p><code>GET https://csgofloat.com/api/v1/listings/&lt;ID&gt;</code></p>
<p><code>GET https://csfloat.com/api/v1/listings/&lt;ID&gt;</code></p>
<h3 id='url-parameters'>URL Parameters</h3>
<table><thead>
<tr>
Expand All @@ -610,7 +610,7 @@ <h3 id='url-parameters'>URL Parameters</h3>
<td>The ID of the listing to retrieve</td>
</tr>
</tbody></table>
<h2 id='list-an-item'>List an item</h2><div class="highlight"><pre class="highlight shell tab-shell"><code>curl <span class="nt">-X</span> POST <span class="s2">"https://csgofloat.com/api/v1/listings"</span> <span class="se">\</span>
<h2 id='list-an-item'>List an item</h2><div class="highlight"><pre class="highlight shell tab-shell"><code>curl <span class="nt">-X</span> POST <span class="s2">"https://csfloat.com/api/v1/listings"</span> <span class="se">\</span>
<span class="nt">-H</span> <span class="s2">"Authorization: &lt;API-KEY&gt;; Content-Type: application/json"</span> <span class="se">\</span>
<span class="nt">-d</span> <span class="s1">'{"asset_id": 21078095468, "type": "buy_now", "price": 8900, "description": "Just for show", "private": false}'</span>
</code></pre></div>
Expand Down Expand Up @@ -714,7 +714,7 @@ <h2 id='list-an-item'>List an item</h2><div class="highlight"><pre class="highli
</span></code></pre></div>
<p>This endpoint lists the item specified by <code>asset_id</code>. Requires an authorization header.</p>
<h3 id='http-request-3'>HTTP Request</h3>
<p><code>POST https://csgofloat.com/api/v1/listings</code></p>
<p><code>POST https://csfloat.com/api/v1/listings</code></p>
<h3 id='body-parameters'>Body Parameters</h3>
<table><thead>
<tr>
Expand Down

0 comments on commit 81929e6

Please sign in to comment.