Jump to content

Search the Community

Showing results for tags 'webservice'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • BOHEMIA INTERACTIVE
    • BOHEMIA INTERACTIVE - NEWS
    • BOHEMIA INTERACTIVE - JOBS
    • BOHEMIA INTERACTIVE - GENERAL
  • FEATURED GAMES
    • Vigor
    • DAYZ
    • ARMA 3
    • ARMA 2
    • YLANDS
  • MOBILE GAMES
    • ARMA MOBILE OPS
    • MINIDAYZ
    • ARMA TACTICS
    • ARMA 2 FIRING RANGE
  • BI MILITARY GAMES FORUMS
  • BOHEMIA INCUBATOR
    • PROJECT LUCIE
  • OTHER BOHEMIA GAMES
    • ARGO
    • TAKE ON MARS
    • TAKE ON HELICOPTERS
    • CARRIER COMMAND: GAEA MISSION
    • ARMA: ARMED ASSAULT / COMBAT OPERATIONS
    • ARMA: COLD WAR ASSAULT / OPERATION FLASHPOINT
    • IRON FRONT: LIBERATION 1944
    • BACK CATALOGUE
  • OFFTOPIC
    • OFFTOPIC
  • Die Hard OFP Lovers' Club's Topics
  • ArmA Toolmakers's Releases
  • ArmA Toolmakers's General
  • Japan in Arma's Topics
  • Arma 3 Photography Club's Discussions
  • The Order Of the Wolfs- Unit's Topics
  • 4th Infantry Brigade's Recruitment
  • 11th Marine Expeditionary Unit OFFICIAL | 11th MEU(SOC)'s 11th MEU(SOC) Recruitment Status - OPEN
  • Legion latina semper fi's New Server Legion latina next wick
  • Legion latina semper fi's https://www.facebook.com/groups/legionlatinasemperfidelis/
  • Legion latina semper fi's Server VPN LEGION LATINA SEMPER FI
  • Team Nederland's Welkom bij ons club
  • Team Nederland's Facebook
  • [H.S.O.] Hellenic Special Operations's Infos
  • BI Forum Ravage Club's Forum Topics
  • Exilemod (Unofficial)'s General Discussion
  • Exilemod (Unofficial)'s Scripts
  • Exilemod (Unofficial)'s Addons
  • Exilemod (Unofficial)'s Problems & Bugs
  • Exilemod (Unofficial)'s Exilemod Tweaks
  • Exilemod (Unofficial)'s Promotion
  • Exilemod (Unofficial)'s Maps - Mission Files
  • TKO's Weferlingen
  • TKO's Virolahti
  • TKO's Livonia
  • TKO's Rules
  • TKO's Changelog
  • TKO's Help
  • TKO's What we Need
  • TKO's Australia
  • MSOF A3 Wasteland's Server Game Play Features
  • MSOF A3 Wasteland's Problems & Bugs
  • MSOF A3 Wasteland's Maps in Rotation
  • SOS GAMING's Server
  • SOS GAMING's News on Server
  • SOS GAMING's Regeln / Rules
  • SOS GAMING's Ghost-Town-Team
  • SOS GAMING's Steuerung / Keys
  • SOS GAMING's Div. Infos
  • SOS GAMING's Small Talk
  • NAMC's Topics
  • NTC's New Members
  • NTC's Enlisted Members
  • The STATE's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Yahoo


Jabber (xmpp)


Skype


Biography


Twitter


Google+


Youtube


Vimeo


Xfire


Steam url id


Raptr


MySpace


Linkedin


Tumblr


Flickr


XBOX Live


PlayStation PSN


Origin


PlayFire


SoundCloud


Pinterest


Reddit


Twitch.Tv


Ustream.Tv


Duxter


Instagram


Location


Interests


Interests


Occupation

Found 2 results

  1. Hello, I just release one class which use RscHTML to interact with API REST throw GET. You could check my code on: https://github.com/minipopov/WebService Don't forget to add ip from your webservice to in allowedHTMLLoadURIs (inside CfgCommands) like this exemple https://community.bistudio.com/wiki/CfgCommands Don't forget to add oop.h to your mission : https://github.com/code34/oop.h How to use instantiate class? private _webservice = ["new", "http://localhost:8080/"] call oo_WebService; Then put some args : private _arr = [ ["action", "update"], ["table", "users"], ["id", getPlayerUID] ]; ["putParam", _arr] call _webservice; And finally call it: private _index = "call" _webservice; It return index of request. You could get request state from index by getStatus private _data = ["getStatus", _index] call _webservice; Which is an array that contain in 0, the status of request "waiting"/"complete"/"timeout"(if request goes to timeout ofc..)/"undefine" if you give bad index. And at 1 the diag_ticktime when request was executed. So, as you could see there is timeout for request that you could set like this ["setTimeOut", 10] call _webservice; //time in second Old request are delete, you could set default time that script keep in memory request ["setKeepInMemory", 500] call _webservice; //Keep all request 500s after there exec Sadly, i didn't find any way to get the output of RscHTML... If anyone know the way to do it.. Hope it could be done to do something a bit more complex like get something in database or something like that.. Im so sorry for my fucking english.. ^^ Here:Exemple of usage:
  2. As exemple for this topic:https://forums.bohemia.net/forums/topic/213192-release-oo_webservice-class-using-oop/ I create a bot discord:https://github.com/minipopov/DiscordBotExemple I create BaseFnc class, which have 2 antiflood system, one per user, one per call by everyone. i add a function named "sendGlobal" which send a text main channel on my discord: const globalMessage = new BaseFnc("sendGlobal", 10) // name of my function, time for antiflood globalMessage.setFloodProtection("perUser") // antiflood system perUser/perCall globalMessage.setCallback((params, steamID) => { // My callback chanGeneral.send(params.text) }); Then i import to my mission oo_Webservice and i create a class oo_Discord which use Webservice. You could check my mission:https://github.com/minipopov/Discord oo_Discord have 1 function "sendGlobal" which send httpRequest with those args: action => name of function to exec steamID => Who execute this call text => message to display on discord Now i make call private _discord = ["new", "http://localhost:8080/"] call oo_Discord; ["sendGlobal","Hello world!"] call _discord; I get this on my discord: http://prntscr.com/i1trv6 Make your own function function and imagine may be some new game/ interaction with people.
×