{"action":"closed","issue":{"url":"https://api.github.com/repos/gengo/memsource-wrap/issues/49","repository_url":"https://api.github.com/repos/gengo/memsource-wrap","labels_url":"https://api.github.com/repos/gengo/memsource-wrap/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/gengo/memsource-wrap/issues/49/comments","events_url":"https://api.github.com/repos/gengo/memsource-wrap/issues/49/events","html_url":"https://github.com/gengo/memsource-wrap/issues/49","id":162934267,"number":49,"title":"Translation Memory list retrieved contains only first 'page' of translation memories.","user":{"login":"jakub-szczepaniak","id":7815188,"avatar_url":"https://avatars.githubusercontent.com/u/7815188?v=3","gravatar_id":"","url":"https://api.github.com/users/jakub-szczepaniak","html_url":"https://github.com/jakub-szczepaniak","followers_url":"https://api.github.com/users/jakub-szczepaniak/followers","following_url":"https://api.github.com/users/jakub-szczepaniak/following{/other_user}","gists_url":"https://api.github.com/users/jakub-szczepaniak/gists{/gist_id}","starred_url":"https://api.github.com/users/jakub-szczepaniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakub-szczepaniak/subscriptions","organizations_url":"https://api.github.com/users/jakub-szczepaniak/orgs","repos_url":"https://api.github.com/users/jakub-szczepaniak/repos","events_url":"https://api.github.com/users/jakub-szczepaniak/events{/privacy}","received_events_url":"https://api.github.com/users/jakub-szczepaniak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-29T14:06:08Z","updated_at":"2016-07-01T01:02:25Z","closed_at":"2016-07-01T01:02:25Z","body":"I have noticed one thing when trying to get the list of TMs using memsource-wrap\r\n\r\nm = memsource.memsource.Memsource(user_name='jakub', password='123')\r\ntm_list = m.translation_memory.list()\r\nprint(len(tm_list))\r\n50 \r\n\r\non my account, there are 70 TMs available.\r\n\r\naccording to Memsource support : \r\n\r\n\r\naction: api/v4/transMemory/list\r\n    token                       string\r\n    page                        integer               O(0)\r\n    name                        string                O\r\n    sourceLang                  locale                O\r\n    targetLang                  locale                O\r\n    client                      domain(Client)        O\r\n    domain                      domain(Domain)        O\r\n    subDomain                   domain(SubDomain)     O\r\n\r\nThe parameter also includes the “page” value. So you should call Memsource page by page until you get an empty list.\r\n\r\nso in order to get the full TM list, this call has to be repeated with different page number, as long as \r\nresult is not empty.\r\n\r\nBest regards, \r\nJakub"}}
{"actor":{"display_login":"narusemotoki"}}