Forum Activity for @amartins

amartins
@amartins
09/22/16 10:36:16AM
48 posts

Bridge Search & Pagination


Proxima

Thanks Douglas.

But without limit the result is worse:

{
    "code": 200
    "text": "OK"
    "data": {
        "_items": [10]
            ···

        "info": {
            "total_items": 10
            "total_pages": 1
            "next_page": 0
            "pagebreak": 20
            "page": 1
            "this_page": 1
            "prev_page": 0
        }
    }
}

Per documentation total items should be 100...

Seems like something's wrong here :(
amartins
@amartins
09/22/16 10:13:42AM
48 posts

Bridge Search & Pagination


Proxima

Hi.
I am trying to get pages using bridge search but the returned JSON data is always the same, no matter which page I request.

Here is the request form:
http://my.awesome.jamroom.dom/api/bridge/tracks/search?pagebreak=20&page=3&limit=200

And I get this info in response:
{
    "code": 200
    "text": "OK"
    "data": {
        "_items": [20]
           ···
        
        "info": {
            "total_items": 100
            "total_pages": 5
            "next_page": 2
            "pagebreak": 20
            "page": 1
            "this_page": 1
            "prev_page": 0
        }
    }
}

It was supposed to return "next_page": 4 and "this_page":3.
Is this any issue or am I doing something wrong?
Thanks.
updated by @amartins: 12/25/16 03:33:27AM
amartins
@amartins
06/18/16 04:18:56PM
48 posts

Bridge and group_by option


Proxima

No problem. I also noticed order_by had the same issue.
Now it is working good!
Thanks
amartins
@amartins
06/15/16 02:33:18PM
48 posts

Bridge and group_by option


Proxima

Hi Brian, I think I found the issue, I now can have the group_by working, please check if this is what's missing:
On jrProximaBridge > include.php I added, inside function
jrProximaBridge_search_items($module, $_data)
, right before line
$_rt = jrCore_db_search_items($module, $_sc);
, the next lines of code
if(isset($_data['group_by'])){
        $_sc["group_by"] = $_data['group_by'];
    }

Let me know if this is it.
Thanks.
updated by @amartins: 06/15/16 02:38:01PM
amartins
@amartins
06/13/16 10:23:15AM
48 posts

Bridge and group_by option


Proxima

Hello.
I am trying to get a list of available music genres from Jamroom framework with Bridge connection to audio module, the column I am targeting is audio_genre, as so the request URL is like: http://my.cool.jamroom.dom/api/bridge/audio/search?group_by=audio_genre.
Since there is only 3 distinct genres it should return me 3 '_elements', one for each genre. But that's not happening it returns same result as if 'group_by=audio_genre' wasn't there: any idea why?
Thanks for attention.
updated by @amartins: 09/20/16 04:43:43AM
amartins
@amartins
05/13/16 02:44:12PM
48 posts

Proxima User Social Login


Proxima

Hi! Is there any plans for Proxima to allow users login with social credentials like G+ or Facebook?
updated by @amartins: 08/26/16 09:21:59PM
amartins
@amartins
05/11/16 11:16:20AM
48 posts

File MD5 checksum for integrity check on downloads


Proxima

Thanks Brian, this helps.
amartins
@amartins
05/11/16 02:07:28AM
48 posts

Proxima, mp3 streaming,


Proxima

michael:
actually, it looks like the URL is wrong. I think the prefix has a spelling mistake in it, try:
Indeed it has a mistake: is not promition_audio but promotion_audio.

And in Java (Android) just have to set the Referer key,value in the request header.
amartins
@amartins
05/10/16 02:38:25PM
48 posts

File MD5 checksum for integrity check on downloads


Proxima

Hello Jamroom Proxima staff! I'm glad you developed it!
I have a question regarding to files integrity/update check using MD5 hash.
But first I'd like to ask you if you already have a way to check downloaded files integrity, have you? If so, please let me know.

What I'd like to have is MD5 hahs files added into items data. For instance, let's say I search audio module for an audio file, and I want to download it, using Proxima Bridge - in the items list if I have the MD5 hash of corresponding file (audio or image) on Jamroom platform, i can easily get the MD5 of the downloaded file and compare with remote one to check if the download was really successful or not. Do you think we can have something like this?
Just wondering... Because If I want to sale audio files over app I have to ensure that user has a valid file for which he/she paid for.
Thanks for attention.
updated by @amartins: 08/09/16 10:35:59PM
amartins
@amartins
05/10/16 02:18:36PM
48 posts

Proxima, mp3 streaming,


Proxima

brian:That check relies on the value of the HTTP_REFERER field, but without it the check "falls through" and fails. What I need to do here is update this check so if ALLOW_ALL_DOMAINS is entered, then it will allow even empty referrals to go through - that should fix it for you.

I noticed this and I suspected that you were using Referer header to check this. For now I guess this is not a problem as I can append that header in Java HTTP request. I successfully downloaded a file in Linux (Ubuntu) using curl:
curl -o musicfile.mp3 -X GET -H "Content-type: *" -H "Referer: http://dev.wowmusic.fm" http://dev.wowmusic.fm/promotion/download/promotion_audio/7

Same with:
curl -o musicfile.mp3 -X GET -H "Content-type: *" -H "Referer: http://dev.wowmusic.fm" http://dev.wowmusic.fm/promotion/stream/promotion_audio/7

Is this last a valid option for streaming?
updated by @amartins: 05/10/16 02:19:12PM
  3