leafo / itchio-app-old

Desktop itch.io client
MIT License
45 stars 6 forks source link

Show claimed keys in app #23

Closed leafo closed 9 years ago

leafo commented 9 years ago

Right now the app only shows games that you have purchased or been gifted. itch.io makes the destinction between purchases/gifts vs download keys that have been claimed. Here's a new API call, very similar to my-owned-keys, that returns owned keys.

I'm thinking for simplicity we'll keep the distinction in the app, and just have a new tab for claimed keys.

GET /api/1/:api_key/my-claimed-keys
{  
  claimed_keys:[  
    {  
      updated_at:"2014-04-14 18:32:30",
      id:24234,
      downloads:0,
      game_id:3,
      created_at:"2014-04-14 18:25:16",
      game:{  
        p_android:false,
        id:3,
        p_osx:true,
        min_price:0,
        created_at:"2013-03-03 23:02:14",
        published_at:"2013-03-03 23:02:14",
        p_windows:true,
        url:"http://leafo.itch.io/x-moon",
        title:"X-Moon",
        cover_url:"http://img.itch.io/aW1hZ2UvMy8xODM3LnBuZw==/315x250%23/y2uYQI.png",
        short_text:"Humans have been colonizing planets. It's time to stop them!",
        type:"default",
        p_linux:true,
        user:{  
          url:"http://leafo.itch.io",
          username:"leafo",
          id:1,
          cover_url:"http://img.itch.io/aW1hZ2UyL3VzZXIvMS8zODEzNi5wbmc=/100x100%23/fsSoF5.png"
        }
      }
    }
  ]
}
joseccandido commented 9 years ago

Claimed keys are now a tab along with purchases.