Questions tagged [mochi]

7 questions
1
vote
1 answer

mochi games integration problem

We send below code of request according to the instruction of mochi games client: var options = {partnerID: "xxxxxxxx", id: "idx"}; options.userID = 1; options.username = 'username'; options.gateway = 'http://example.com/game'; options.width =…
Mansur
  • 11
  • 3
0
votes
1 answer

How does one set the auto-logout time in mochiweb?

I'm looking at the source code for mochiweb and seeing numbers that test cookie expiration time that look nothing like the behavior of the server that I've inherited. mochiweb has 111 and 86417 (a day plus 17 seconds) in source, but it looks like…
Sniggerfardimungus
  • 11,583
  • 10
  • 52
  • 97
0
votes
1 answer

Retrofit & Mochi: Empty response (and weird bug)

I'm having the weirdest bug I EVER had. For a school project, I need to get the JSON of this API. I didn't encounter any error, but the response body is null. Not exactly null, but still null. First, here is the code I use to get the data (Yeah,…
user11771570
0
votes
1 answer

How to initialize the Map type variable to solve NullPointerException error?

I am not sure which variable is null when the for loop is executed. Is it the entry that is uninitialized? MainActivity.java static class Gist { Map files; } static class GistFile { String content; …
oc2020
  • 31
  • 1
  • 3
0
votes
1 answer

How do I handle, parse, a colon in the url with httparty and json

I'm trying to parse the Mochi Media API on my site. Unfortunately, they make use of colons in their API URLs.... http://feedmonger.mochimedia.com/feeds/query/?q=(recommendation:>=0) and category:action&partner_id=XXXX The question is, using…
dnyce
  • 415
  • 1
  • 6
  • 20
0
votes
1 answer

How to build a complex URL/feed that wraps inner options in parentheses?

I'm trying to build a feed generator for hooking into an api. The API that I'm trying to hook into builds URLs in the following…
dnyce
  • 415
  • 1
  • 6
  • 20
-1
votes
1 answer

Is php the right language to program for a large json api such as mochi?

So I am currently using django and the site goes down very often... However, because of that i was thinking if a simpler solution of php is introduced in slurping in the games over to my db and s3 using the following api then i would not have to…
phpnovice
  • 1
  • 2