Skip to content

Instantly share code, notes, and snippets.

@jaturken
Created March 25, 2013 08:52
Show Gist options
  • Save jaturken/5235781 to your computer and use it in GitHub Desktop.
Save jaturken/5235781 to your computer and use it in GitHub Desktop.
moymir.api.users.hasAppPermission
params = 'app_id='+ mailru.app_id +
'ext_perm=stream' +
'method=users.hasAppPermission' +
'session_key=' + mailru.session.session_key +
'url=' + encodeURIComponent(data.url)
network_url = 'http://www.appsmail.ru/platform/api?method=users.hasAppPermission' +
'&app_id=' + mailru.app_id +
'&session_key=' + mailru.session.session_key +
'&sig=' + hex_md5(mailru.session.oid + params + mailru.private_key) +
'&ext_perm=stream'
window.open(network_url, 'network_share', window_options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment