CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Tech Boards
Web Development
BO2 RTE REST API
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="thahitcrew" data-source="post: 4533" data-attributes="member: 1392"><p>(PS3 Only)</p><p><span style="font-size: 10px">(Thread moved to Web Development section on 5/21/2016)</span></p><p>Hey guys whatsup, recently i finished a small beta version of my new BO2 RTE REST API</p><p><span style="font-size: 12px">(<strong>B</strong>lack <strong>O</strong>ps <strong>2</strong> <strong>R</strong>eal <strong>T</strong>ime <strong>E</strong>diting <strong>RE</strong>presentational <strong>S</strong>tate <strong>T</strong>ransfer <strong>A</strong>pplication <strong>P</strong>rogram <strong>I</strong>nterface - or simply: <strong>BO2 RTE REST API</strong>).</span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px"><span style="color: #ff0000">(NOTE: For the API to work you <strong>MUST </strong>have my BO2_RTE_API_Response_Listener listener running. <strong> F</strong>or the "changeName", "changePrestige" and "rebootFlagType" parameters to work you <strong>MUST</strong> be connected to your console. <strong>ALSO </strong>make sure you have black ops 2 running on your PS3 before attempting to connect to your console via my API)</span></span></p><p><span style="font-size: 10px"><span style="color: #ff0000"></span></span></p><p><span style="font-size: 15px">The API can be used to make simple web based RTE tools on your websites with ease. Here is an example of how to connect/attach to your console using my API in PHP:</span></p><p><span style="font-size: 15px">[PHP]</span></p><p><span style="font-size: 15px"><?php</span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">if(isset($_POST['SubmitConsoleIP']))//Check if Console IP Has Been Submitted</span></p><p><span style="font-size: 15px">{</span></p><p><span style="font-size: 15px"> $ConnectToConsole = file_get_contents("http://ps3cfw.com/api/ps3/ccapi/bo2/RTE.php?consoleIP=CONSOLE_IP_HERE");//Query API with console IP (this is used for the connection process)</span></p><p><span style="font-size: 15px">}</span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">?></span></p><p><span style="font-size: 15px">[/PHP]</span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">After the above query has been executed you can check if the connection to your console was completed with success by simply calling my API with the parameter "returnConnectionStatus" equal to "1"</span></p><p><span style="font-size: 15px">[PHP]</span></p><p><span style="font-size: 15px">http://ps3cfw.com/api/ps3/ccapi/bo2/RTE.php?returnConnectionStatus=1</span></p><p><span style="font-size: 15px">[/PHP]</span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">The above will return a JSON array like so:</span></p><p><span style="font-size: 15px">[PHP]</span></p><p><span style="font-size: 15px">{"Connection_Status":"1"}</span></p><p><span style="font-size: 15px">[/PHP]</span></p><p><span style="font-size: 15px">If "Connection_Status" is equal to "1" that means you're currently connected to your console, if "Connection_Status" is equal to "0" OR "0.5" this means you are not connected to your console.</span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">Here is an example of how to check if connection to your console was done with success:</span></p><p><span style="font-size: 15px">[PHP]</span></p><p><span style="font-size: 15px"><?php</span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px"> $PublicIP = "ENTER_YOUR_PUBLIC_IP"; //Enter your PUBLIC ip here, this is used to check DB for console connection status</span></p><p><span style="font-size: 15px"> $GetConnectionStatus = file_get_contents("http://ps3cfw.com/api/ps3/ccapi/bo2/RTE.php?returnConnectionStatus=1&IPForCheckConnectionStatus=".$PublicIP); //Returns either "1", "0" or "0.5"</span></p><p><span style="font-size: 15px"> $JSONResponse = $GetConnectionStatus;</span></p><p><span style="font-size: 15px"> $DecodeJSONArray = json_decode($JSONResponse,true);</span></p><p><span style="font-size: 15px"> $ConnectionStatus = $DecodeJSONArray['Connection_Status'];</span></p><p><span style="font-size: 15px"> if($ConnectionStatus == "0" || $ConnectionStatus == "0.5")</span></p><p><span style="font-size: 15px"> {</span></p><p><span style="font-size: 15px"> echo "Not Connected";//You're NOT connected to your console</span></p><p><span style="font-size: 15px"> }</span></p><p><span style="font-size: 15px"> else</span></p><p><span style="font-size: 15px"> {</span></p><p><span style="font-size: 15px"> echo "Connected";//You ARE connected to your console</span></p><p><span style="font-size: 15px"> }</span></p><p><span style="font-size: 15px"> </span></p><p><span style="font-size: 15px">?></span></p><p><span style="font-size: 15px">[/PHP]</span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">Once you've determined you're connected to your console via my API you can add these parameters to the API: "changeName", "changePrestige" or "rebootFlagType"</span></p><p><span style="font-size: 15px">the "changeName" parameter is used to change your name, it can be executed like so:</span></p><p><span style="font-size: 15px">[PHP]http://ps3cfw.com/api/ps3/ccapi/bo2/RTE.php?changeName=^2Enter_Name_Here[/PHP]</span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">The "changePrestige" parameter is used to change your prestige, it can be executed like this:</span></p><p><span style="font-size: 15px">[PHP]http://ps3cfw.com/api/ps3/ccapi/bo2/RTE.php?changePrestige=Enter_Prestige_Here[/PHP]</span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">The final parameter "rebootFlagType" is used to either ShutDown, HardReboot or SoftReboot your console, here is a list of what each value for the "rebootFlagType" parameter will do:</span></p><p><span style="font-size: 15px">[PHP]1 = ShutDown</span></p><p><span style="font-size: 15px">2 = HardReboot</span></p><p><span style="font-size: 15px">3 = SoftReboot[/PHP]</span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">Here is an example query of how to HardReboot your console:</span></p><p><span style="font-size: 15px">[PHP]http://ps3cfw.com/api/ps3/ccapi/bo2/RTE.php?rebootFlagType=2[/PHP]</span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">If when attempting to query my API you receive a JSON response that looks somewhat similar to this:</span></p><p><span style="font-size: 15px">[PHP]{"Response":"0x03"}[/PHP] that means an error has occurred, here is a list of all errors:</span></p><p><span style="font-size: 15px">[PHP]</span></p><p><span style="font-size: 15px">0x01 = Already Connected To Your Console</span></p><p><span style="font-size: 15px">0x02 = Invalid Console IP</span></p><p><span style="font-size: 15px">0x03 = Unable To Exectue Query Due To Not Being Connected to Console</span></p><p><span style="font-size: 15px">0x04 = Invalid Reboot Flag Type</span></p><p><span style="font-size: 15px">[/PHP]</span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">Download BO2_RTE_API_Response_Listener:</span></p><p><span style="font-size: 15px"><a href="http://ps3cfw.com/api/ps3/ccapi/bo2/BO2_RTE_API_Response_Listener_By_thahitcrew.zip" target="_blank">http://ps3cfw.com/api/ps3/ccapi/bo2/BO2_RTE_API_Response_Listener_By_thahitcrew.zip</a></span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">Virus Scan of BO2_RTE_API_Response_Listener:</span></p><p><span style="font-size: 15px"><a href="https://www.virustotal.com/de/file/4db8b6845579180417448d2b3443212296d7dfdc7472eba7552e29cf19d4edfc/analysis/1461700583/" target="_blank">Antivirus scan for 4db8b6845579180417448d2b3443212296d7dfdc7472eba7552e29cf19d4edfc at2016-04-26 19:56:23 UTC - VirusTotal</a></span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">Virus Scan results: (4 / 54) Due to MSIL Obfuscation And/Or string encryption</span></p></blockquote><p></p>
[QUOTE="thahitcrew, post: 4533, member: 1392"] (PS3 Only) [SIZE=2](Thread moved to Web Development section on 5/21/2016)[/SIZE] Hey guys whatsup, recently i finished a small beta version of my new BO2 RTE REST API [SIZE=3]([B]B[/B]lack [B]O[/B]ps [B]2[/B] [B]R[/B]eal [B]T[/B]ime [B]E[/B]diting [B]RE[/B]presentational [B]S[/B]tate [B]T[/B]ransfer [B]A[/B]pplication [B]P[/B]rogram [B]I[/B]nterface - or simply: [B]BO2 RTE REST API[/B]).[/SIZE] [SIZE=2] [COLOR=#ff0000](NOTE: For the API to work you [B]MUST [/B]have my BO2_RTE_API_Response_Listener listener running. [B] F[/B]or the "changeName", "changePrestige" and "rebootFlagType" parameters to work you [B]MUST[/B] be connected to your console. [B]ALSO [/B]make sure you have black ops 2 running on your PS3 before attempting to connect to your console via my API) [/COLOR][/SIZE] [SIZE=4]The API can be used to make simple web based RTE tools on your websites with ease. Here is an example of how to connect/attach to your console using my API in PHP: [PHP] <?php if(isset($_POST['SubmitConsoleIP']))//Check if Console IP Has Been Submitted { $ConnectToConsole = file_get_contents("http://ps3cfw.com/api/ps3/ccapi/bo2/RTE.php?consoleIP=CONSOLE_IP_HERE");//Query API with console IP (this is used for the connection process) } ?> [/PHP] After the above query has been executed you can check if the connection to your console was completed with success by simply calling my API with the parameter "returnConnectionStatus" equal to "1" [PHP] http://ps3cfw.com/api/ps3/ccapi/bo2/RTE.php?returnConnectionStatus=1 [/PHP] The above will return a JSON array like so: [PHP] {"Connection_Status":"1"} [/PHP] If "Connection_Status" is equal to "1" that means you're currently connected to your console, if "Connection_Status" is equal to "0" OR "0.5" this means you are not connected to your console. Here is an example of how to check if connection to your console was done with success: [PHP] <?php $PublicIP = "ENTER_YOUR_PUBLIC_IP"; //Enter your PUBLIC ip here, this is used to check DB for console connection status $GetConnectionStatus = file_get_contents("http://ps3cfw.com/api/ps3/ccapi/bo2/RTE.php?returnConnectionStatus=1&IPForCheckConnectionStatus=".$PublicIP); //Returns either "1", "0" or "0.5" $JSONResponse = $GetConnectionStatus; $DecodeJSONArray = json_decode($JSONResponse,true); $ConnectionStatus = $DecodeJSONArray['Connection_Status']; if($ConnectionStatus == "0" || $ConnectionStatus == "0.5") { echo "Not Connected";//You're NOT connected to your console } else { echo "Connected";//You ARE connected to your console } ?> [/PHP] Once you've determined you're connected to your console via my API you can add these parameters to the API: "changeName", "changePrestige" or "rebootFlagType" the "changeName" parameter is used to change your name, it can be executed like so: [PHP]http://ps3cfw.com/api/ps3/ccapi/bo2/RTE.php?changeName=^2Enter_Name_Here[/PHP] The "changePrestige" parameter is used to change your prestige, it can be executed like this: [PHP]http://ps3cfw.com/api/ps3/ccapi/bo2/RTE.php?changePrestige=Enter_Prestige_Here[/PHP] The final parameter "rebootFlagType" is used to either ShutDown, HardReboot or SoftReboot your console, here is a list of what each value for the "rebootFlagType" parameter will do: [PHP]1 = ShutDown 2 = HardReboot 3 = SoftReboot[/PHP] Here is an example query of how to HardReboot your console: [PHP]http://ps3cfw.com/api/ps3/ccapi/bo2/RTE.php?rebootFlagType=2[/PHP] If when attempting to query my API you receive a JSON response that looks somewhat similar to this: [PHP]{"Response":"0x03"}[/PHP] that means an error has occurred, here is a list of all errors: [PHP] 0x01 = Already Connected To Your Console 0x02 = Invalid Console IP 0x03 = Unable To Exectue Query Due To Not Being Connected to Console 0x04 = Invalid Reboot Flag Type [/PHP] Download BO2_RTE_API_Response_Listener: [URL]http://ps3cfw.com/api/ps3/ccapi/bo2/BO2_RTE_API_Response_Listener_By_thahitcrew.zip[/URL] Virus Scan of BO2_RTE_API_Response_Listener: [URL='https://www.virustotal.com/de/file/4db8b6845579180417448d2b3443212296d7dfdc7472eba7552e29cf19d4edfc/analysis/1461700583/']Antivirus scan for 4db8b6845579180417448d2b3443212296d7dfdc7472eba7552e29cf19d4edfc at2016-04-26 19:56:23 UTC - VirusTotal[/URL] Virus Scan results: (4 / 54) Due to MSIL Obfuscation And/Or string encryption[/SIZE] [/QUOTE]
Verification
Post reply
Forums
Tech Boards
Web Development
BO2 RTE REST API
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top