+
Skip to content

Newbie question... how can I avoid "TypeError: Base64 is undefined" #285

Closed
@dalareo

Description

@dalareo

I am learning to use the library, in order to get data from Github and build a dynamic website but...

what am I doing wrong?? This is my html sandbox file:

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet" href="">
</head>
<body>
<script src="github.js" type="text/javascript"></script>
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script type="text/javascript">
var github = new Github({
username: 'dalareo',
password: '**********',
reponame: 'wemooc',
auth: 'basic'
});
var user = github.getUser();
user.orgs(function(err, orgs) {});
</script>
</body>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载