Embed attributes in a URL expression?

The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
edited November 2013 in Working with GS (Mac)
This is something I've done little with. I have done it for twitter and email but not a URL to php script. Not sure of the syntax. Do I need to seperate the variable insertion with .. Like in a text behavior or just insert the variable in the string? Any ideas or input is appreciated.

I will be testing this later this afternoon so just trying to gather any good info to narrow the testing phases. I will report the results and do a video on it if I am successful.

Comments

  • KevinCrossKevinCross London, UKMember Posts: 1,894
    edited November 2013
    I've not done it with GameSalad but I would have thought you'd use the .. to seperate the variable from the URL string i.e.

    "http://www.mycoolsite.com/scoreboard.php?score="..game.score.."&level="..game.level

    I should point out that I've not used the URL behavior at all, so not even sure if it has an expression button.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Yes it does have an expression just like twitter and mail. I thought I might be something like that. Thanks will report my findings.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Yes it does have an expression just like twitter and mail. I thought I might be something like that. Thanks will report my findings.
    so this finally made it back into the nightlies? it's come and gone more often than high tide. I swear I read somewhere awhile ago that it was a mistake it was in there again, but it probably was removed and readded again.

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    I just noticed it is removed. Last time I used it it was there…Damn! I just asked blackcloack if we could have access to expressions like twitter as that would make exporting data possible in GS using php.
  • dgackeydgackey Austin, TXInactive, PRO, Chef Emeritus Posts: 699
    What's the goal here? Just trying to make HTTP calls? If so, that functionality will be exposed once the MP code gets pushed to nightlies.

    Dan Magaha · COO · GameSalad, Inc · danm@gamesalad.com

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited November 2013
    Tying to embed score and player name in a URL in conjunction with a php script on a web page. I'm working on an app for Dewars Whiskey and they are offering rewards and want to validate the player scores via their own system built to work in conjunction with their app. So having access to the game variables to add to the string is critical. Similar to the access we have in tweet sheet. This project will lead to other project with Dewars and other major brands as the agency I'm working with loves the speed at which, with GS, I am able to turn these app around. The main issues holding back other projects are being able to export data for prizes and such.
Sign In or Register to comment.